Sha256: 07867de5ac8727c13319e7d8effde4866f7e24ec973ad9ab8973e8a0ecc9aa45

Contents?: true

Size: 593 Bytes

Versions: 11

Compression:

Stored size: 593 Bytes

Contents

require 'refinerycms-testing'

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

  # set some config values so that image and resource factories don't fail to create
  config.before do
    Refinery::Images.max_image_size = 5_242_880 if defined?(Refinery::Images)
    Refinery::Resources.max_file_size = 52_428_800 if defined?(Refinery::Resources)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-4.0.3 spec/support/refinery.rb
refinerycms-core-4.0.2 spec/support/refinery.rb
refinerycms-core-4.0.1 spec/support/refinery.rb
refinerycms-core-3.0.6 spec/support/refinery.rb
refinerycms-core-4.0.0 spec/support/refinery.rb
refinerycms-core-3.0.5 spec/support/refinery.rb
refinerycms-core-3.0.4 spec/support/refinery.rb
refinerycms-core-3.0.3 spec/support/refinery.rb
refinerycms-core-3.0.2 spec/support/refinery.rb
refinerycms-core-3.0.1 spec/support/refinery.rb
refinerycms-core-3.0.0 spec/support/refinery.rb