Skip to content

Instantly share code, notes, and snippets.

@DCarper
Created May 27, 2011 15:31
Show Gist options
  • Select an option

  • Save DCarper/995488 to your computer and use it in GitHub Desktop.

Select an option

Save DCarper/995488 to your computer and use it in GitHub Desktop.
Missing template partial_path in view path
module SomeHelper
def fold_registration_form(options = {})
if options[:stage] == 1
render :partial => 'partial_path'
else
render :partial => 'partial_path'
end
end
end
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