mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
get code coverage to 100%!
This commit is contained in:
parent
903eabc1e4
commit
64c0424f40
1 changed files with 14 additions and 0 deletions
14
spec/database_cleaner/strategy_spec.rb
Normal file
14
spec/database_cleaner/strategy_spec.rb
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
require "database_cleaner/strategy"
|
||||||
|
|
||||||
|
RSpec.describe DatabaseCleaner::Strategy do
|
||||||
|
describe "default implementation" do
|
||||||
|
it "does not provide a default implementation for #clean" do
|
||||||
|
expect { described_class.new.clean }.to raise_exception(NotImplementedError)
|
||||||
|
end
|
||||||
|
|
||||||
|
it "rejects options" do
|
||||||
|
expect { described_class.new(only: %w[a b c]) }.to \
|
||||||
|
raise_exception(ArgumentError, "No options are available for the Strategy strategy.")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue