Permalink
Browse files

Minor wording change to custom input spec

  • Loading branch information...
1 parent 03e8662 commit 3acc015d55630e8576dfbbbac53ac503ab15455c @haines haines committed Jan 4, 2012
Showing with 7 additions and 8 deletions.
  1. +7 −8 spec/inputs/custom_input_spec.rb
@@ -28,25 +28,24 @@ def to_html
end
-describe 'AnyCustomInput' do
+describe "AnyCustomInput" do
include TestInputs
describe "#to_html" do
- describe 'without an implementation' do
- it "should raise a NotImplementedError exception" do
- expect { ::UnimplementedInput.new(*input_args).to_html }.to raise_error(NotImplementedError)
+ describe "without an implementation" do
+ it "raises a NotImplementedError" do
+ expect { UnimplementedInput.new(*input_args).to_html }.to raise_error(NotImplementedError)
end
end
- describe 'with an implementation' do
- it "should raise a NotImplementedError exception" do
- expect { ::ImplementedInput.new(*input_args).to_html }.to_not raise_error(NotImplementedError)
+ describe "with an implementation" do
+ it "does not raise a NotImplementedError exception" do
+ expect { ImplementedInput.new(*input_args).to_html }.not_to raise_error(NotImplementedError)
end
end
end
end
-

0 comments on commit 3acc015

Please sign in to comment.