Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show how to assign a template variable in comments

  • Loading branch information...
commit fc61801053bf58f1e1e4ba15cf8d2d6da379cfb3 1 parent 5e1290b
@drnic authored
View
1  generators/javascript_spec/templates/fixture_render_spec.rb.erb
@@ -6,4 +6,5 @@ run_javascript_spec(<%= file_path_without_spec.inspect %>, "/<%= view %>.html.er
#
# @current_user = User.make
# template.stub!(:current_user).and_return(@current_user)
+ # assigns[:current_user] = @current_user
end
Please sign in to comment.
Something went wrong with that request. Please try again.