Skip to content

Commit

Permalink
Replace any_instance with allow_any_instance_of
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 15, 2013
1 parent ddbed4c commit 19f95da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/shell/color_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def shell
end

before do
StringIO.any_instance.stub(:tty?).and_return(true)
allow_any_instance_of(StringIO).to receive(:tty?).and_return(true)
end

describe "#say" do
Expand Down

0 comments on commit 19f95da

Please sign in to comment.