fix tests
This commit is contained in:
parent
6f82741154
commit
7e941990c4
|
@ -8,7 +8,10 @@ describe GitHubChangelogGenerator::Generator do
|
||||||
# before(:each) do
|
# before(:each) do
|
||||||
# @generator.options = {}
|
# @generator.options = {}
|
||||||
# end
|
# end
|
||||||
subject { @generator.get_filtered_tags(%w(1 2 3)) }
|
subject do
|
||||||
|
@generator.instance_variable_set("@options", between_tags: %w(1 2 3))
|
||||||
|
@generator.get_filtered_tags(%w(1 2 3))
|
||||||
|
end
|
||||||
it { is_expected.to be_a(Array) }
|
it { is_expected.to be_a(Array) }
|
||||||
it { is_expected.to match_array(%w(1 2 3)) }
|
it { is_expected.to match_array(%w(1 2 3)) }
|
||||||
end
|
end
|
||||||
|
@ -19,11 +22,11 @@ describe GitHubChangelogGenerator::Generator do
|
||||||
# end
|
# end
|
||||||
|
|
||||||
subject do
|
subject do
|
||||||
@generator.instance_variable_set("@options", between_tags: ["1"])
|
@generator.instance_variable_set("@options", between_tags: %w(1 2))
|
||||||
@generator.get_filtered_tags(%w(1 2 3))
|
@generator.get_filtered_tags(%w(1 2 3))
|
||||||
end
|
end
|
||||||
it { is_expected.to be_a(Array) }
|
it { is_expected.to be_a(Array) }
|
||||||
it { is_expected.to match_array(%w(1)) }
|
it { is_expected.to match_array(%w(1 2)) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user