Created
May 27, 2011 15:31
-
-
Save DCarper/995488 to your computer and use it in GitHub Desktop.
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
| Missing template partial_path in view path |
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
| module SomeHelper | |
| def fold_registration_form(options = {}) | |
| if options[:stage] == 1 | |
| render :partial => 'partial_path' | |
| else | |
| render :partial => 'partial_path' | |
| end | |
| end | |
| end |
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
| it "should render the first stage of the process when told to" do | |
| markup = helper.fold_registration_form( :stage => 1 ) | |
| markup.should == render(:partial => 'partial_path') | |
| end | |
| it "should render the first stage of the process when told to" do | |
| markup = helper.fold_registration_form( :stage => 2 ) | |
| markup.should == render(:partial => 'partial_path') | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment