Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rspec error with user_path(@user)
- require 'spec_helper'
- describe "LayoutLinks" do
- I18n.available_locales.each do |locale|
- I18n.locale = locale
- .
- .
- describe "when signed in" do
- before(:each) do
- @user = Factory(:user)
- visit signin_path
- fill_in :email, :with => @user.email
- fill_in :password, :with => @user.password
- click_button
- visit root_path
- end
- .
- .
- .
- it "should have a profile link" do
- response.should have_selector('a', :href => "/#{I18n.locale}#{user_path(@user)}", :content => I18n.t(:link_profile))
- end
- end
- end
- end
- No route matches {:action=>"show", :controller=>"users", :locale=>#<the complete User Hash>
Add Comment
Please, Sign In to add comment