mspec 1.5.18 → 1.5.19
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +20 -0
- data/lib/mspec/commands/mspec-ci.rb +2 -0
- data/lib/mspec/commands/mspec-run.rb +4 -1
- data/lib/mspec/commands/mspec-tag.rb +2 -0
- data/lib/mspec/version.rb +1 -1
- data/spec/commands/mspec_run_spec.rb +2 -1
- metadata +4 -3
data/.travis.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
language: ruby
|
2
|
+
script:
|
3
|
+
- bundle exec rspec
|
4
|
+
jdk:
|
5
|
+
- openjdk7
|
6
|
+
rvm:
|
7
|
+
- 1.8.7
|
8
|
+
- 1.9.3
|
9
|
+
- 2.0.0
|
10
|
+
- ruby-head
|
11
|
+
- rbx-18mode
|
12
|
+
- rbx-19mode
|
13
|
+
- jruby-18mode
|
14
|
+
- jruby-19mode
|
15
|
+
allow_failures:
|
16
|
+
- rvm: jruby-18mode
|
17
|
+
- rvm: jruby-19mode
|
18
|
+
notifications:
|
19
|
+
recipients:
|
20
|
+
- brixen@gmail.com
|
@@ -71,11 +71,12 @@ class MSpecRun < MSpecScript
|
|
71
71
|
options.doc "\n $ mspec --spec-debug -S 'this crashes' path/to/the_file_spec.rb"
|
72
72
|
options.doc "\n 4. To run some specs matching 'this crashes'"
|
73
73
|
options.doc "\n $ mspec -e 'this crashes' path/to/the_file_spec.rb"
|
74
|
-
|
74
|
+
|
75
75
|
options.doc ""
|
76
76
|
|
77
77
|
patterns = options.parse argv
|
78
78
|
patterns = config[:files] if patterns.empty?
|
79
|
+
patterns = "spec/" if patterns.empty? and File.directory? "./spec"
|
79
80
|
if patterns.empty?
|
80
81
|
puts options
|
81
82
|
puts "No files specified."
|
@@ -85,6 +86,8 @@ class MSpecRun < MSpecScript
|
|
85
86
|
end
|
86
87
|
|
87
88
|
def run
|
89
|
+
MSpec.register_mode :no_ruby_bug
|
90
|
+
|
88
91
|
MSpec.register_tags_patterns config[:tags_patterns]
|
89
92
|
MSpec.register_files @files
|
90
93
|
|
data/lib/mspec/version.rb
CHANGED
@@ -118,7 +118,8 @@ describe MSpecRun, "#options" do
|
|
118
118
|
@script.options @argv
|
119
119
|
end
|
120
120
|
|
121
|
-
it "exits if there are no files to process" do
|
121
|
+
it "exits if there are no files to process and './spec' is not a directory" do
|
122
|
+
File.should_receive(:directory?).with("./spec").and_return(false)
|
122
123
|
@options.should_receive(:parse).and_return([])
|
123
124
|
@script.should_receive(:exit)
|
124
125
|
@script.options
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.19
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -60,6 +60,7 @@ extra_rdoc_files:
|
|
60
60
|
- LICENSE
|
61
61
|
files:
|
62
62
|
- .gitignore
|
63
|
+
- .travis.yml
|
63
64
|
- Gemfile
|
64
65
|
- LICENSE
|
65
66
|
- README
|
@@ -363,7 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
363
364
|
version: '0'
|
364
365
|
requirements: []
|
365
366
|
rubyforge_project: http://rubyforge.org/projects/mspec
|
366
|
-
rubygems_version: 1.8.
|
367
|
+
rubygems_version: 1.8.23
|
367
368
|
signing_key:
|
368
369
|
specification_version: 3
|
369
370
|
summary: MSpec is a specialized framework that is syntax-compatible with RSpec for
|