Sha256: 9a60cf91cc0b6dcc6435e0c7d062010b401a6fe059e36d3b6023e15e2c43b091

Contents?: true

Size: 672 Bytes

Versions: 32

Compression:

Stored size: 672 Bytes

Contents

require "rspec/rails"
require "clearance/testing/deny_access_matcher"
require "clearance/testing/controller_helpers"
require "clearance/testing/view_helpers"

RSpec.configure do |config|
  config.include Clearance::Testing::Matchers, type: :controller
  config.include Clearance::Testing::ControllerHelpers, type: :controller
  config.include Clearance::Testing::ViewHelpers, type: :view
  config.include Clearance::Testing::ViewHelpers, type: :helper

  config.before(:each, type: :view) do
    view.extend Clearance::Testing::ViewHelpers::CurrentUser
  end

  config.before(:each, type: :helper) do
    view.extend Clearance::Testing::ViewHelpers::CurrentUser
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
clearance-2.9.2 lib/clearance/rspec.rb
clearance-2.9.1 lib/clearance/rspec.rb
clearance-2.9.0 lib/clearance/rspec.rb
clearance-2.8.0 lib/clearance/rspec.rb
clearance-2.7.2 lib/clearance/rspec.rb
clearance-2.7.0 lib/clearance/rspec.rb
clearance-2.6.2 lib/clearance/rspec.rb
clearance-2.6.1 lib/clearance/rspec.rb
clearance-2.6.0 lib/clearance/rspec.rb
clearance-2.5.0 lib/clearance/rspec.rb
clearance-2.4.0 lib/clearance/rspec.rb
clearance-2.3.1 lib/clearance/rspec.rb
clearance-2.3.0 lib/clearance/rspec.rb
clearance-2.2.1 lib/clearance/rspec.rb
clearance-2.2.0 lib/clearance/rspec.rb
clearance-2.1.0 lib/clearance/rspec.rb
clearance-2.0.0 lib/clearance/rspec.rb
clearance-2.0.0.beta2 lib/clearance/rspec.rb
clearance-2.0.0.beta1 lib/clearance/rspec.rb
clearance-1.17.0 lib/clearance/rspec.rb