summaryrefslogtreecommitdiff
path: root/spec/mspec/spec/commands/mspec_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/spec/commands/mspec_spec.rb')
-rw-r--r--spec/mspec/spec/commands/mspec_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/mspec/spec/commands/mspec_spec.rb b/spec/mspec/spec/commands/mspec_spec.rb
index 5d2134a054..b01af6b41b 100644
--- a/spec/mspec/spec/commands/mspec_spec.rb
+++ b/spec/mspec/spec/commands/mspec_spec.rb
@@ -60,13 +60,13 @@ describe MSpecMain, "#run" do
end
it "uses exec to invoke the runner script" do
- @script.should_receive(:exec).with("ruby", "#{MSPEC_HOME}/bin/mspec-run")
+ @script.should_receive(:exec).with("ruby", "#{MSPEC_HOME}/bin/mspec-run", close_others: false)
@script.options []
@script.run
end
it "shows the command line on stderr" do
- @script.should_receive(:exec).with("ruby", "#{MSPEC_HOME}/bin/mspec-run")
+ @script.should_receive(:exec).with("ruby", "#{MSPEC_HOME}/bin/mspec-run", close_others: false)
@script.options []
@script.run
$stderr.to_s.should == "$ ruby #{Dir.pwd}/bin/mspec-run\n"
@@ -74,7 +74,7 @@ describe MSpecMain, "#run" do
it "adds config[:launch] to the exec options" do
@script.should_receive(:exec).with("ruby",
- "-Xlaunch.option", "#{MSPEC_HOME}/bin/mspec-run")
+ "-Xlaunch.option", "#{MSPEC_HOME}/bin/mspec-run", close_others: false)
@config[:launch] << "-Xlaunch.option"
@script.options []
@script.run