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

Skip to content

Commit a2e4d82

Browse files
committed
Added extra examples
1 parent b165115 commit a2e4d82

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bundler/spec/commands/newgem_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,11 @@ def create_temporary_dir(dir)
16111611
end
16121612
it_behaves_like "--bundle flag"
16131613
it_behaves_like "--no-bundle flag"
1614+
1615+
it "runs bundle install" do
1616+
bundle "gem #{gem_name}"
1617+
expect(out).to include("Running bundle install in the new gem directory.")
1618+
end
16141619
end
16151620

16161621
context "with bundle option in bundle config settings set to false" do
@@ -1619,6 +1624,11 @@ def create_temporary_dir(dir)
16191624
end
16201625
it_behaves_like "--bundle flag"
16211626
it_behaves_like "--no-bundle flag"
1627+
1628+
it "does not run bundle install" do
1629+
bundle "gem #{gem_name}"
1630+
expect(out).to_not include("Running bundle install in the new gem directory.")
1631+
end
16221632
end
16231633
end
16241634

0 commit comments

Comments
 (0)