Sha256: 63dea03d9c8f1b7d2729ca38d2b2e406e8cf435bb856320833afe086e6d2719f

Contents?: true

Size: 544 Bytes

Versions: 3

Compression:

Stored size: 544 Bytes

Contents

require "spec_helper"
require "appraisal/customize"

describe Appraisal::Customize do
  it "has defaults" do
    expect(described_class.heading).to eq nil
    expect(described_class.single_quotes).to eq false
    expect { described_class.new }.to_not(change do
      [described_class.heading, described_class.single_quotes]
    end)
  end

  it "can override defaults" do
    described_class.new(single_quotes: true, heading: "foo")
    expect(described_class.heading).to eq "foo"
    expect(described_class.single_quotes).to eq true
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/spec/appraisal/customize_spec.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/spec/appraisal/customize_spec.rb
appraisal-2.5.0 spec/appraisal/customize_spec.rb