Created
April 16, 2014 21:46
-
-
Save Veraticus/10936379 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "gets show successfully" do | |
event = events(:good_event1) # Loading the event from a fixture file | |
Event.expects(:find).with('4').returns(event).once | |
get :show, id: 4 | |
body = JSON.parse(response.body) | |
body['title'].should == 'Title' | |
body['markup'].should == 'Markup' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment