Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 732db6415722
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b6b5c3c76ea1
Choose a head ref
  • 2 commits
  • 7 files changed
  • 1 contributor

Commits on Mar 24, 2015

  1. Squashed 'spec/mspec/' changes from 48dbdc3..6676cd6

    6676cd6 Show tagged stats by default.
    3ac8bc4 Update the extension of the README in the gemspec.
    76fedea Restrict RSpec to version 2.x, excluding 2.99.
    32841bb Travis: do not depend on a specific jdk.
    
    git-subtree-dir: spec/mspec
    git-subtree-split: 6676cd6ad6d65590fe9e92e12062fb10bdccce5e
    eregon committed Mar 24, 2015
    Copy the full SHA
    197f5eb View commit details
  2. Copy the full SHA
    b6b5c3c View commit details
2 changes: 0 additions & 2 deletions spec/mspec/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: ruby
script:
- bundle exec rspec
jdk:
- openjdk7
rvm:
- 1.8.7
- 1.9.3
16 changes: 8 additions & 8 deletions spec/mspec/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -8,14 +8,14 @@ GEM
specs:
diff-lcs (1.2.5)
rake (10.4.2)
rspec (2.99.0)
rspec-core (~> 2.99.0)
rspec-expectations (~> 2.99.0)
rspec-mocks (~> 2.99.0)
rspec-core (2.99.2)
rspec-expectations (2.99.2)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.99.3)
rspec-mocks (2.14.6)

PLATFORMS
java
@@ -24,4 +24,4 @@ PLATFORMS
DEPENDENCIES
mspec!
rake (~> 10.0)
rspec (~> 2.8)
rspec (~> 2.14.1)
3 changes: 1 addition & 2 deletions spec/mspec/lib/mspec/runner/actions/tally.rb
Original file line number Diff line number Diff line change
@@ -62,10 +62,9 @@ def tag
end

def format
results = [ file, example, expectation, failure, error ]
results = [ file, example, expectation, failure, error, tag ]
if [:report, :report_on, :verify].any? { |m| MSpec.mode? m }
results << guard
results << tag
end
results.join(", ")
end
6 changes: 3 additions & 3 deletions spec/mspec/mspec.gemspec
Original file line number Diff line number Diff line change
@@ -27,14 +27,14 @@ MSpec attempts to use the simplest Ruby language features
so that beginning Ruby implementations can run it.
EOS
gem.has_rdoc = true
gem.extra_rdoc_files = %w[ README LICENSE ]
gem.extra_rdoc_files = %w[ README.md LICENSE ]
gem.rubygems_version = %q{1.3.5}
gem.rubyforge_project = 'http://rubyforge.org/projects/mspec'

gem.rdoc_options << '--title' << 'MSpec Gem' <<
'--main' << 'README' <<
'--main' << 'README.md' <<
'--line-numbers'

gem.add_development_dependency "rake", "~> 10.0"
gem.add_development_dependency "rspec", "~> 2.8"
gem.add_development_dependency "rspec", "~> 2.14.1"
end
4 changes: 2 additions & 2 deletions spec/mspec/spec/commands/mspec_spec.rb
Original file line number Diff line number Diff line change
@@ -143,7 +143,7 @@
Finished in 42 seconds
2 files, 2 examples, 4 expectations, 0 failures, 0 errors
2 files, 2 examples, 4 expectations, 0 failures, 0 errors, 0 tagged
]
end

@@ -174,7 +174,7 @@
Finished in 42 seconds
1 file, 1 example, 2 expectations, 0 failures, 0 errors
1 file, 1 example, 2 expectations, 0 failures, 0 errors, 0 tagged
]
end
end
13 changes: 8 additions & 5 deletions spec/mspec/spec/runner/actions/tally_spec.rb
Original file line number Diff line number Diff line change
@@ -180,7 +180,8 @@
@tally.examples! 2
@tally.expectations! 4
@tally.errors!
@tally.format.should == "1 file, 2 examples, 4 expectations, 0 failures, 1 error"
@tally.tagged!
@tally.format.should == "1 file, 2 examples, 4 expectations, 0 failures, 1 error, 1 tagged"
end

it "includes guards if MSpec is in verify mode" do
@@ -189,9 +190,10 @@
@tally.examples! 2
@tally.expectations! 4
@tally.errors!
@tally.tagged!
@tally.guards!
@tally.format.should ==
"1 file, 2 examples, 4 expectations, 0 failures, 1 error, 1 guard, 0 tagged"
"1 file, 2 examples, 4 expectations, 0 failures, 1 error, 1 tagged, 1 guard"
end

it "includes guards if MSpec is in report mode" do
@@ -200,9 +202,10 @@
@tally.examples! 2
@tally.expectations! 4
@tally.errors!
@tally.tagged!
@tally.guards! 2
@tally.format.should ==
"1 file, 2 examples, 4 expectations, 0 failures, 1 error, 2 guards, 0 tagged"
"1 file, 2 examples, 4 expectations, 0 failures, 1 error, 1 tagged, 2 guards"
end

it "includes guards if MSpec is in report_on mode" do
@@ -213,7 +216,7 @@
@tally.errors!
@tally.guards! 2
@tally.format.should ==
"1 file, 2 examples, 4 expectations, 0 failures, 1 error, 2 guards, 0 tagged"
"1 file, 2 examples, 4 expectations, 0 failures, 1 error, 0 tagged, 2 guards"
end
end

@@ -312,7 +315,7 @@
@tally.expectation @state
exc = ExceptionState.new nil, nil, SpecExpectationNotMetError.new("Failed!")
@tally.exception exc
@tally.format.should == "1 file, 1 example, 2 expectations, 1 failure, 0 errors"
@tally.format.should == "1 file, 1 example, 2 expectations, 1 failure, 0 errors, 0 tagged"
end
end

6 changes: 3 additions & 3 deletions spec/mspec/spec/runner/formatters/describe_spec.rb
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@

it "prints a tally of counts" do
@formatter.finish
@out.should =~ /^1 file, 1 example, 2 expectations, 0 failures, 0 errors$/
@out.should =~ /^1 file, 1 example, 2 expectations, 0 failures, 0 errors, 0 tagged$/
end

it "does not print exceptions" do
@@ -46,7 +46,7 @@
Finished in 2.0 seconds
1 file, 1 example, 2 expectations, 0 failures, 0 errors
1 file, 1 example, 2 expectations, 0 failures, 0 errors, 0 tagged
]
end

@@ -61,7 +61,7 @@
Finished in 2.0 seconds
1 file, 1 example, 2 expectations, 0 failures, 0 errors
1 file, 1 example, 2 expectations, 0 failures, 0 errors, 0 tagged
]
end
end