Skip to content

Commit

Permalink
Include certain helpers only for controller specs
Browse files Browse the repository at this point in the history
Travis CI was failing because of the conflict between the `sign_out` method
meant for integration tests and the `sign_out` method used for controller specs.

Example failure: https://travis-ci.org/thoughtbot/clearance/jobs/4730477
  • Loading branch information
Greg Lazarev committed Feb 23, 2013
1 parent b7dda29 commit 4d8bce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clearance/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class ActionController::TestCase
if defined?(RSpec) && RSpec.respond_to?(:configure)
RSpec.configure do |config|
config.include Clearance::Testing::Matchers
config.include Clearance::Testing::Helpers
config.include Clearance::Testing::Helpers, :type => :controller
end
end

0 comments on commit 4d8bce7

Please sign in to comment.