Skip to content

Commit 4ef8cb2

Browse files
committed
[rubygems/rubygems] Assert stdout message instead of rspec-mock
rubygems/rubygems@91d7abe27f
1 parent 7e9cbb1 commit 4ef8cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/bundler/commands/newgem_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def ignore_paths
167167
end
168168
it "generates a gem skeleton with bundle install" do
169169
gem_skeleton_assertions
170-
expect(Kernel).to receive(:system).with("bundle", "install").once
170+
expect(out).to include("Running bundle install in the new gem directory.")
171171
end
172172
end
173173

@@ -177,7 +177,7 @@ def ignore_paths
177177
end
178178
it "generates a gem skeleton without bundle install" do
179179
gem_skeleton_assertions
180-
expect(Kernel).not_to receive(:system).with("bundle", "install")
180+
expect(out).to_not include("Running bundle install in the new gem directory.")
181181
end
182182
end
183183

0 commit comments

Comments
 (0)