Skip to content

Instantly share code, notes, and snippets.

@Veraticus
Created April 16, 2014 21:46
Show Gist options
  • Save Veraticus/10936379 to your computer and use it in GitHub Desktop.
Save Veraticus/10936379 to your computer and use it in GitHub Desktop.
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