respec 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/CHANGELOG +4 -0
- data/lib/respec/app.rb +4 -0
- data/lib/respec/version.rb +1 -1
- data/spec/respec/app_spec.rb +21 -8
- metadata +2 -8
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
data/lib/respec/app.rb
CHANGED
data/lib/respec/version.rb
CHANGED
data/spec/respec/app_spec.rb
CHANGED
@@ -28,23 +28,21 @@ describe Respec::App do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
it "should check the BUNDLE_GEMFILE environment variable if set" do
|
31
|
-
|
32
|
-
ENV['BUNDLE_GEMFILE'] = "#{tmp}/custom_gemfile"
|
33
|
-
begin
|
31
|
+
with_hash_value ENV, 'BUNDLE_GEMFILE', "#{tmp}/custom_gemfile" do
|
34
32
|
FileUtils.touch "#{tmp}/custom_gemfile"
|
35
33
|
Dir.chdir tmp do
|
36
34
|
app = Respec::App.new
|
37
35
|
app.bundler_args.should == ['bundle', 'exec']
|
38
36
|
end
|
39
|
-
ensure
|
40
|
-
ENV['BUNDLE_GEMFILE'] = original_bundle_gemfile
|
41
37
|
end
|
42
38
|
end
|
43
39
|
|
44
40
|
it "should not run through bundler if no Gemfile is present" do
|
45
|
-
|
46
|
-
|
47
|
-
|
41
|
+
with_hash_value ENV, 'BUNDLE_GEMFILE', nil do
|
42
|
+
Dir.chdir tmp do
|
43
|
+
app = Respec::App.new
|
44
|
+
app.bundler_args.should == []
|
45
|
+
end
|
48
46
|
end
|
49
47
|
end
|
50
48
|
end
|
@@ -90,6 +88,21 @@ describe Respec::App do
|
|
90
88
|
app.generated_args.should == ['a.rb:1', 'b.rb:2']
|
91
89
|
end
|
92
90
|
|
91
|
+
it "should run via the debugger if 'd' is given" do
|
92
|
+
app = Respec::App.new('d')
|
93
|
+
app.generated_args.should == ['--debugger']
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should run via DRb if 'X' is given" do
|
97
|
+
app = Respec::App.new('X')
|
98
|
+
app.generated_args.should == ['--drb']
|
99
|
+
end
|
100
|
+
|
101
|
+
it "should run via DRb if 'x' is given" do
|
102
|
+
app = Respec::App.new('x')
|
103
|
+
app.generated_args.should == ['--drb']
|
104
|
+
end
|
105
|
+
|
93
106
|
it "should run the n-th failure if a numeric argument 'n' is given" do
|
94
107
|
make_failures_file 'a.rb:1', 'b.rb:2'
|
95
108
|
app = Respec::App.new('2')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: respec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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: 2012-05-
|
12
|
+
date: 2012-05-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -94,18 +94,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- - ! '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
segments:
|
98
|
-
- 0
|
99
|
-
hash: -3838848027574177683
|
100
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
98
|
none: false
|
102
99
|
requirements:
|
103
100
|
- - ! '>='
|
104
101
|
- !ruby/object:Gem::Version
|
105
102
|
version: '0'
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
hash: -3838848027574177683
|
109
103
|
requirements: []
|
110
104
|
rubyforge_project:
|
111
105
|
rubygems_version: 1.8.24
|