add test case

This commit is contained in:
Petr Korolev
2015-06-11 13:09:04 +03:00
parent 8906fe5022
commit 9f1537ab34
2 changed files with 18 additions and 4 deletions

View File

@@ -77,4 +77,18 @@ describe GitHubChangelogGenerator::Generator do
it { is_expected.to match_array(tags_mash_from_strings(%w(1 2))) }
end
end
describe "#get_time_of_tag" do
before(:all) do
@generator = GitHubChangelogGenerator::Generator.new
puts "blah"
end
it "should raise ChangelogGeneratorError" do
expect { @generator.get_time_of_tag nil }.to raise_error(GitHubChangelogGenerator::ChangelogGeneratorError)
end
end
describe "#sort_tags_by_date" do
subject { generator.sort_tags_by_date }
end
end