#117 new
Chad Humphries

[#13661] View Specs - Allow controller to be defined (default to ApplicationController)

Reported by Chad Humphries | November 19th, 2007 @ 06:27 AM

This will give the view access to helper_methods defined in the controller.

e.g.

describe "foo/show.erb" do
  controller_name "foo"

  it "should have method defined from foo controller" do
    template.foobar.should == "I'm defined in FooController"
  end
end

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Behaviour Driven Development for Ruby.

Shared Ticket Bins

People watching this ticket