Displaying 1 result from an estimated 1 matches for "new_profile_url".
2007 Aug 27
2
issue with edge rails and urls
..._spec.rb:17
Here''s the relevant spec:
describe ApplicationHelper, "home_link" do
before(:each) do
User.current = nil
Profile.current = nil
end
it "should generate a valid home link when User.current and
Profile.current is not set" do
home_link.should =~ /#{new_profile_url}/
end
it "should generate a valid home link when User.current is set" do
User.current = mock_model(User)
home_link.should =~ /#{dashboard_url}/
end
it "should generate a valid home link when Profile.current is set" do
Profile.current = mock_model(Profile)
home_l...