Created
October 23, 2014 10:20
-
-
Save thiagoramos23/39d6903e3aff96a737d2 to your computer and use it in GitHub Desktop.
Renderable Action
This file contains hidden or 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
| RSpec.shared_examples "renderable action" do |template_to_render| | |
| it "renders #{template_to_render} template" do | |
| expect(response).to render_template(template_to_render) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment