Guest User

Untitled

a guest
Aug 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. rspec error with user_path(@user)
  2. require 'spec_helper'
  3.  
  4. describe "LayoutLinks" do
  5. I18n.available_locales.each do |locale|
  6. I18n.locale = locale
  7. .
  8. .
  9.  
  10. describe "when signed in" do
  11. before(:each) do
  12. @user = Factory(:user)
  13. visit signin_path
  14. fill_in :email, :with => @user.email
  15. fill_in :password, :with => @user.password
  16. click_button
  17. visit root_path
  18. end
  19.  
  20. .
  21. .
  22. .
  23. it "should have a profile link" do
  24. response.should have_selector('a', :href => "/#{I18n.locale}#{user_path(@user)}", :content => I18n.t(:link_profile))
  25. end
  26. end
  27. end
  28. end
  29.  
  30. No route matches {:action=>"show", :controller=>"users", :locale=>#<the complete User Hash>
Add Comment
Please, Sign In to add comment