Sha256: 1fae9295753deb19a806c0a93af876770d6f086b1e376c3a8d9acc2c9284d15d
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
# typed: ignore # frozen_string_literal: true RSpec.describe EML::Config do let(:config) { described_class.new } describe "#environment=" do after { config.environment = :test } it "sets the environment" do expect { config.environment = :production }.to( change(config.environment, :production?).from(false).to(true) ) end context "when in invalid environment is supplied" do specify do expect { config.environment = :invalid }.to raise_error(ArgumentError) end specify do expect { config.environment = "production" }.to raise_error(TypeError) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eml-1.0.0 | spec/config_spec.rb |