File: shared_strategy.rb

package info (click to toggle)
ruby-database-cleaner 1.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 768 kB
  • sloc: ruby: 4,854; makefile: 10; 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