mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
15 lines
418 B
Ruby
15 lines
418 B
Ruby
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
|