Skip to content

Commit

Permalink
remove mock for current_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
wireframe committed Sep 19, 2014
1 parent 0886fc5 commit 5abe30f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/thegarage/gitx/cli/integrate_command_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
}
end
let(:cli) { Thegarage::Gitx::Cli::IntegrateCommand.new(args, options, config) }
let(:branch) { double('fake branch', name: 'feature-branch') }
let(:current_branch) { double('fake branch', name: 'feature-branch', head?: true) }
let(:repo) { cli.send(:repo) }
let(:branches) { [current_branch] }

before do
allow(cli).to receive(:current_branch).and_return(branch)
allow(repo).to receive(:branches).and_return(branches)
end

describe '#integrate' do
Expand Down

0 comments on commit 5abe30f

Please sign in to comment.