spec/sanitizer_spec.rb in input_sanitizer-0.1.8 vs spec/sanitizer_spec.rb in input_sanitizer-0.1.9
- old
+ new
@@ -120,10 +120,10 @@
end
it "raises an error when converter is not defined" do
expect do
BrokenCustomSanitizer.custom(:x)
- end.should raise_error
+ end.to raise_error
end
end
describe ".converters" do
let(:sanitizer) { InputSanitizer::Sanitizer }