Sha256: f126cffbd1e7f1484f1db4ebed0b00629421687288973f0827377cb45fbad9af
Contents?: true
Size: 505 Bytes
Versions: 29
Compression:
Stored size: 505 Bytes
Contents
require "spec_helper" RSpec.describe Relaton::Config do before { restore_to_default_config } after { restore_to_default_config } describe ".configure" do it "allows user to set custom configuration" do log_types = ["info", :warning, :error] Relaton.configure do |config| config.logs = log_types end expect(Relaton.configuration.logs).to eq(log_types) end end def restore_to_default_config Relaton.configuration.logs = %i(warning error) end end
Version data entries
29 entries across 29 versions & 2 rubygems