Sha256: 484316d9c054600674cc8340d6ecc4a99f9b8946fc24cdc9a8d523b8181d3a66

Contents?: true

Size: 614 Bytes

Versions: 6

Compression:

Stored size: 614 Bytes

Contents

require 'refinerycms-testing'

RSpec.configure do |config|
  config.extend Refinery::Testing::ControllerMacros::Authentication, :type => :controller
  config.include Refinery::Testing::ControllerMacros::Methods, :type => :controller
  config.extend Refinery::Testing::FeatureMacros::Authentication, :type => :feature
  config.include Warden::Test::Helpers

  # set some config values so that image and resource factories don't fail to create
  config.before do
    Refinery::Images.max_image_size = 5242880
    Refinery::Resources.max_file_size = 52428800
  end

  config.after do
    Warden.test_reset!
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-core-2.1.5 spec/support/refinery.rb
refinerycms-core-2.1.4 spec/support/refinery.rb
refinerycms-core-2.1.3 spec/support/refinery.rb
refinerycms-core-2.1.2 spec/support/refinery.rb
refinerycms-core-2.1.1 spec/support/refinery.rb
refinerycms-core-2.1.0 spec/support/refinery.rb