File: shared_strategy.rb

package info (click to toggle)
ruby-database-cleaner 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 640 kB
  • ctags: 462
  • sloc: ruby: 3,895; makefile: 9; sh: 4
file content (15 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
shared_examples_for "a generic strategy" do
  it { should respond_to(:db)  }
end

shared_examples_for "a generic truncation strategy" do
  it { should respond_to(:start) }
  it { should respond_to(:clean) }
  it { should respond_to(:cleaning) }
end

shared_examples_for "a generic transaction strategy" do
  it { should respond_to(:start) }
  it { should respond_to(:clean) }
  it { should respond_to(:cleaning) }
end