summaryrefslogtreecommitdiff
path: root/spec/mspec/spec
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-27 21:54:38 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-27 21:54:38 +0000
commit24db428785c938d401c9e582b5ea2622540222ad (patch)
tree89ceefbce859ead933ff13c685a3e59e282bdfd2 /spec/mspec/spec
parentd97c171b90ad58c1f960d48ff8e304ae504d29cc (diff)
Update to ruby/mspec@6c95759
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/mspec/spec')
-rw-r--r--spec/mspec/spec/commands/mspec_spec.rb10
-rw-r--r--spec/mspec/spec/fixtures/print_interpreter_spec.rb2
-rw-r--r--spec/mspec/spec/spec_helper.rb3
3 files changed, 4 insertions, 11 deletions
diff --git a/spec/mspec/spec/commands/mspec_spec.rb b/spec/mspec/spec/commands/mspec_spec.rb
index 8b8b8fcc41..5d2134a054 100644
--- a/spec/mspec/spec/commands/mspec_spec.rb
+++ b/spec/mspec/spec/commands/mspec_spec.rb
@@ -83,7 +83,7 @@ describe MSpecMain, "#run" do
it "calls #multi_exec if the command is 'ci' and the multi option is passed" do
@script.should_receive(:multi_exec).and_return do |argv|
- argv.should == ["ruby", "#{MSPEC_HOME}/bin/mspec-ci", "-fy"]
+ argv.should == ["ruby", "#{MSPEC_HOME}/bin/mspec-ci"]
end
@script.options ["ci", "-j"]
lambda do
@@ -140,14 +140,6 @@ describe "The -j, --multi option" do
@config[:multi].should == true
end
end
-
- it "sets the formatter to YamlFormatter" do
- ["-j", "--multi"].each do |opt|
- @config[:options] = []
- @script.options [opt]
- @config[:options].should include("-fy")
- end
- end
end
describe "The -h, --help option" do
diff --git a/spec/mspec/spec/fixtures/print_interpreter_spec.rb b/spec/mspec/spec/fixtures/print_interpreter_spec.rb
index e1c514dc87..a662346d0a 100644
--- a/spec/mspec/spec/fixtures/print_interpreter_spec.rb
+++ b/spec/mspec/spec/fixtures/print_interpreter_spec.rb
@@ -1,4 +1,4 @@
unless defined?(RSpec)
puts ENV["RUBY_EXE"]
- puts ruby_cmd("nil").split.first
+ puts ruby_cmd(nil).split.first
end
diff --git a/spec/mspec/spec/spec_helper.rb b/spec/mspec/spec/spec_helper.rb
index 4fae9bd7e2..93e383ebb0 100644
--- a/spec/mspec/spec/spec_helper.rb
+++ b/spec/mspec/spec/spec_helper.rb
@@ -48,7 +48,8 @@ def run_mspec(command, args)
ret = $?
out = out.sub(/\A\$.+\n/, '') # Remove printed command line
out = out.sub(RUBY_DESCRIPTION, "RUBY_DESCRIPTION")
- out = out.gsub(/\d\.\d{6}/, "D.DDDDDD")
+ out = out.gsub(/\d\.\d{6}/, "D.DDDDDD") # Specs total time
+ out = out.gsub(/\d{2}:\d{2}:\d{2}/, "00:00:00") # Progress bar time
out = out.gsub(cwd, "CWD")
return out, ret
end