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