spec/controllers/forgeries_controller_spec.rb in clearance-0.16.0 vs spec/controllers/forgeries_controller_spec.rb in clearance-0.16.1
- old
+ new
@@ -19,10 +19,10 @@
Rails.application.routes.draw do
resources :forgeries
match 'sign_in' => 'clearance/sessions#new', :as => 'sign_in'
end
- @user = Factory(:user)
+ @user = create(:user)
@user.update_attribute(:remember_token, "old-token")
@request.cookies["remember_token"] = "old-token"
@request.session[:_csrf_token] = "golden-ticket"
end