Sha256: b3232aeb419532237b15184de9bd6d9f9c50f9ade886a70245963a9c2f96d253
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
require 'spec_helper' describe PGit::Bilateral::HandleChooseStory do it 'should create the branch' do some_story = double('PGit::Story') chosen_story = double('PGit::Story') options = {response: '1', stories: [some_story, chosen_story]} story_branch = double('PGit::StoryBranch', start: true) name_parser = double('PGit::StoryBranch::NameParser') allow(PGit::StoryBranch::NameParser).to receive(:new).with(chosen_story).and_return(name_parser) allow(PGit::StoryBranch).to receive(:new).with(name_parser).and_return(story_branch) handle_choose_story = PGit::Bilateral::HandleChooseStory.new(options) expect(story_branch).to have_received(:start) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-1.0.0 | spec/pgit/bilateral/handle_choose_story_spec.rb |