Sha256: 9a5b24fcf278f0ed1f70d33a1f321d1dafa01a4c62ee7f3c929b0340f0b09b76

Contents?: true

Size: 622 Bytes

Versions: 7

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Necromancer::Configuration, '.new' do

  subject(:config) { described_class.new }

  it { is_expected.to respond_to(:strict=) }

  it { is_expected.to respond_to(:copy=) }

  it "is in non-strict mode by default" do
    expect(config.strict).to eq(false)
  end

  it "is in copy mode by default" do
    expect(config.copy).to eq(true)
  end

  it "allows to set strict through method" do
    config.strict true
    expect(config.strict).to eq(true)
  end

  it "allows to set copy mode through method" do
    config.copy false
    expect(config.strict).to eq(false)
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
pokedex-terminal-0.2.8 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/configuration/new_spec.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/configuration/new_spec.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/configuration/new_spec.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/configuration/new_spec.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/necromancer-0.5.1/spec/unit/configuration/new_spec.rb
necromancer-0.5.1 spec/unit/configuration/new_spec.rb
necromancer-0.5.0 spec/unit/configuration/new_spec.rb