Sha256: 474d191a6eccc85860d6aafb264e4c4665769800041f2fee17dd5fabde18bcb4

Contents?: true

Size: 823 Bytes

Versions: 17

Compression:

Stored size: 823 Bytes

Contents

require 'cypress_on_rails/configuration'

RSpec.describe CypressOnRails::Configuration do
  it 'has defaults' do
    CypressOnRails.configure { |config| config.reset }

    expect(CypressOnRails.configuration.cypress_folder).to eq('spec/cypress')
    expect(CypressOnRails.configuration.use_middleware?).to eq(true)
    expect(CypressOnRails.configuration.logger).to_not be_nil
  end

  it 'can be configured' do
    my_logger = Logger.new(STDOUT)
    CypressOnRails.configure do |config|
      config.cypress_folder = 'my/path'
      config.use_middleware = false
      config.logger = my_logger
    end
    expect(CypressOnRails.configuration.cypress_folder).to eq('my/path')
    expect(CypressOnRails.configuration.use_middleware?).to eq(false)
    expect(CypressOnRails.configuration.logger).to eq(my_logger)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cypress-on-rails-1.13.1 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.13.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.12.1 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.12.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.11.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.10.1 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.9.1 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.9.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.8.1 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.8.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.7.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.6.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.5.1 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.5.0 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.4.2 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.4.1 spec/cypress_on_rails/configuration_spec.rb
cypress-on-rails-1.4.0 spec/cypress_on_rails/configuration_spec.rb