Skip to content

Commit

Permalink
Remove 'should' from example docstrings
Browse files Browse the repository at this point in the history
- Closes rspec#11.
  • Loading branch information
justinko authored and dchelimsky committed Aug 14, 2010
1 parent 0f26a24 commit c1ce142
Show file tree
Hide file tree
Showing 17 changed files with 308 additions and 308 deletions.
6 changes: 3 additions & 3 deletions spec/rspec/expectations/differ_spec.rb
Expand Up @@ -26,7 +26,7 @@ def inspect
@differ = RSpec::Expectations::Differ.new(@options)
end

it "should output unified diff of two strings" do
it "outputs unified diff of two strings" do
expected="foo\nbar\nzap\nthis\nis\nsoo\nvery\nvery\nequal\ninsert\na\nline\n"
actual="foo\nzap\nbar\nthis\nis\nsoo\nvery\nvery\nequal\ninsert\na\nanother\nline\n"
expected_diff= <<'EOD'
Expand All @@ -52,7 +52,7 @@ def inspect
diff.should eql(expected_diff)
end

it "should output unified diff message of two arrays" do
it "outputs unified diff message of two arrays" do
expected = [ :foo, 'bar', :baz, 'quux', :metasyntactic, 'variable', :delta, 'charlie', :width, 'quite wide' ]
actual = [ :foo, 'bar', :baz, 'quux', :metasyntactic, 'variable', :delta, 'tango' , :width, 'very wide' ]

Expand All @@ -75,7 +75,7 @@ def inspect
diff.should == expected_diff
end

it "should output unified diff message of two objects" do
it "outputs unified diff message of two objects" do
expected = RSpec::Fixtures::Animal.new "bob", "giraffe"
actual = RSpec::Fixtures::Animal.new "bob", "tortoise"

Expand Down
4 changes: 2 additions & 2 deletions spec/rspec/expectations/handler_spec.rb
Expand Up @@ -184,7 +184,7 @@ module Expectations
describe PositiveExpectationHandler do
include ExampleExpectations

it "should handle submitted args" do
it "handles submitted args" do
5.should arbitrary_matcher(:expected => 5)
5.should arbitrary_matcher(:expected => "wrong").with(5)
lambda { 5.should arbitrary_matcher(:expected => 4) }.should fail_with("expected 4, got 5")
Expand All @@ -195,7 +195,7 @@ module Expectations
lambda { 5.should_not arbitrary_matcher(:expected => 4).with(5) }.should fail_with("expected not 5, got 5")
end

it "should handle the submitted block" do
it "handles the submitted block" do
5.should arbitrary_matcher { 5 }
5.should arbitrary_matcher(:expected => 4) { 5 }
5.should arbitrary_matcher(:expected => 4).with(5) { 3 }
Expand Down

0 comments on commit c1ce142

Please sign in to comment.