Sha256: d58d6d58c20bae7c2d3f4dcbfcfcef55fd217107e3e48519bcd965ae78b11214

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

require 'clearance/testing/assertion_error'
require 'clearance/testing/deny_access_matcher'
require 'clearance/testing/helpers'

if defined?(ActionController::TestCase)
  ActionController::TestCase.extend Clearance::Testing::Matchers

  class ActionController::TestCase
    include Clearance::Testing::Helpers
  end
end

if defined?(RSpec) && RSpec.respond_to?(:configure)
  RSpec.configure do |config|
    config.include Clearance::Testing::Matchers
    config.include Clearance::Testing::Helpers, :type => :controller
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clearance-1.1.0 lib/clearance/testing.rb
clearance-1.0.1 lib/clearance/testing.rb
clearance-1.0.0 lib/clearance/testing.rb
clearance-1.0.0.rc8 lib/clearance/testing.rb