Skip to content

Commit 19f95da

Browse files
committed
Replace any_instance with allow_any_instance_of
1 parent ddbed4c commit 19f95da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/shell/color_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def shell
66
end
77

88
before do
9-
StringIO.any_instance.stub(:tty?).and_return(true)
9+
allow_any_instance_of(StringIO).to receive(:tty?).and_return(true)
1010
end
1111

1212
describe "#say" do

0 commit comments

Comments
 (0)