Sha256: 074c9aa17c4e22703632e7a0b4d7efb2c6f0496fe18c2e58a3096b29ca747f2a
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
require 'spec_helper' describe PGit::StoryBranch::StoryIdParser do describe 'if it exists' do it 'parse should give us the id' do parser = PGit::StoryBranch::StoryIdParser.new("pgit-status-shows-information-about-current-story-if-there-is-one-97997060") expect(parser.parse).to eq "97997060" end end describe 'if does not exist' do it 'should raise an error' do parser = PGit::StoryBranch::StoryIdParser.new("pgit-status-shows-information-about-current-story-if-there-is-one") expect{parser.parse}.to raise_error(PGit::Error::User, 'The current branch is not associated with a story. Does not have a story id.') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-1.0.0 | spec/pgit/story_branch/story_id_parser_spec.rb |