Permalink
Browse files

update RSpec example to use expect() syntax

  • Loading branch information...
1 parent d3cf792 commit 7d60bb82e63fe1f8c97fef3e0d5ac2bfbd2d205f @aweiksnar aweiksnar committed Sep 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 testing.markdown
View
@@ -197,8 +197,8 @@ included within the `describe` block:
it "says hello" do
get '/'
- last_response.should be_ok
- last_response.body.should == 'Hello World'
+ expect(last_response).to be_ok
+ expect(last_response.body).to eq('Hello World')
end
end

0 comments on commit 7d60bb8

Please sign in to comment.