database_cleaner/spec/database_cleaner/shared_strategy.rb
2014-01-24 23:19:21 -05:00

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