Created
May 18, 2013 13:43
-
-
Save andreaseriksson/5604436 to your computer and use it in GitHub Desktop.
RSPEC Controller spec #NESTED ROUTE
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
describe 'GET#show' do | |
it "renders the :show template for the appointment" do | |
contact = create(:contact) | |
appointment = create(:appointment, contact: contact) | |
get :show, id: appointment, contact_id: contact.id | |
expect(response).to render_template :show | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment