Hi guys, I'm building a application using subdomains feature like basecamp. To create the correct link reference I use a with_subdomain function whch take the subdmain name and create a subdomain name like subdomain.mydomain.com. So to teste that a account information view have the link to right domain I wrote the test above: describe SubdomainController do render_views it "should have a link to subdomain" do post :create, :subdomain => @attr response.should have_selector('a', :href => with_subdomain('test'), :content => with_subdomain('test')) end end
But I get the error message below: NoMethodError: undefined method `with_subdomain' for #<RSpec::Core::ExampleGroup::Nested_5::Nested_2::Nested_2:0x8ebf124> And I included the url_helper that has the function on my ApplicationController like this: class ApplicationController < ActionController::Base include UrlHelper end So, if you have any idea what is wrong, where I miss, please help me. Thanks, Pablo Lacerda de Miranda pablolmira...@gmail.com +55 11 8701-1086 _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users