get code coverage to 100%!

This commit is contained in:
Micah Geisel 2020-05-09 10:46:14 -07:00
parent 903eabc1e4
commit 64c0424f40
1 changed files with 14 additions and 0 deletions

View 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