Skip to content

Commit

Permalink
Fix spec for new Customize feature
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-sharp committed Feb 29, 2024
1 parent 7113812 commit 86db4b8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/appraisal/customize_spec.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
require "spec_helper"
require "appraisal/appraisal"
require "appraisal/customize"

describe Appraisal::Customize do
let(:appraisal) { Appraisal::Appraisal.new("test", "Gemfile") }

it "has defaults" do
expect(described_class.heading).to eq nil
expect(described_class.heading(appraisal)).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]
[described_class.heading(appraisal), 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.heading(appraisal)).to eq "foo"
expect(described_class.single_quotes).to eq true
end
end

0 comments on commit 86db4b8

Please sign in to comment.