[rspec-devel] [ rspec-Feature Requests-13661 ] View Specs - Allow controller to be defined (default to ApplicationController)

noreply at rubyforge.org noreply at rubyforge.org
Tue Sep 4 19:29:54 EDT 2007


Feature Requests item #13661, was opened at 2007-09-04 16:29
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=13661&group_id=797

Category: rails plugin
Group: None
Status: Open
Priority: 3
Submitted By: Brian Takita (btakita)
Assigned to: Nobody (None)
Summary: View Specs - Allow controller to be defined (default to ApplicationController)

Initial Comment:
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


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=13661&group_id=797


More information about the rspec-devel mailing list