Add request and controller authentication macros to rspec config
refactor request specs to take advantage of authentication macros
This commit is contained in:
parent
a23689a6aa
commit
c3b7d0b1d2
4 changed files with 6 additions and 12 deletions
|
@ -42,6 +42,8 @@ Spork.prefork do
|
|||
end
|
||||
|
||||
config.include Devise::TestHelpers, :type => :controller
|
||||
config.extend Refinery::ControllerMacros::Authentication, :type => :controller
|
||||
config.extend Refinery::RequestMacros::Authentication, :type => :request
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue