spec/pgit/current_branch_spec.rb in pgit-0.0.2 vs spec/pgit/current_branch_spec.rb in pgit-0.0.3

- old
+ new

@@ -9,10 +9,10 @@ some-branch * master some-other-branch FAKE_BRANCHES - allow(PGit::CurrentBranch).to receive(:`).with(git_branch_command).and_return(fake_branches) + allow_any_instance_of(PGit::CurrentBranch).to receive(:`).with(git_branch_command).and_return(fake_branches) current_branch_name = PGit::CurrentBranch.new.name expect(current_branch_name).to eq fake_current_branch end end