Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91d7abe

Browse files
committed
Assert stdout message instead of rspec-mock
1 parent ab9b8c2 commit 91d7abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundler/spec/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)