rspec-core 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/autotest/rspec2.rb +2 -2
- data/lib/rspec/core/version.rb +1 -1
- data/spec/autotest/rspec_spec.rb +2 -2
- metadata +5 -5
data/lib/autotest/rspec2.rb
CHANGED
@@ -5,7 +5,7 @@ class RSpecCommandError < StandardError; end
|
|
5
5
|
|
6
6
|
class Autotest::Rspec2 < Autotest
|
7
7
|
|
8
|
-
|
8
|
+
RSPEC_EXECUTABLE = File.expand_path('../../../exe/rspec', __FILE__)
|
9
9
|
|
10
10
|
def initialize
|
11
11
|
super()
|
@@ -45,7 +45,7 @@ class Autotest::Rspec2 < Autotest
|
|
45
45
|
# Overrides Autotest's implementation to generate the rspec command to run
|
46
46
|
def make_test_cmd(files_to_test)
|
47
47
|
files_to_test.empty? ? '' :
|
48
|
-
"#{prefix}#{ruby}#{suffix} -S #{
|
48
|
+
"#{prefix}#{ruby}#{suffix} -S #{RSPEC_EXECUTABLE} --tty #{normalize(files_to_test).keys.flatten.map { |f| "'#{f}'"}.join(' ')}"
|
49
49
|
end
|
50
50
|
|
51
51
|
# Generates a map of filenames to Arrays for Autotest
|
data/lib/rspec/core/version.rb
CHANGED
data/spec/autotest/rspec_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Autotest::Rspec2 do
|
4
4
|
let(:rspec_autotest) { Autotest::Rspec2.new }
|
5
|
-
let(:spec_cmd) { File.expand_path(
|
5
|
+
let(:spec_cmd) { File.expand_path("../../../exe/rspec", __FILE__) }
|
6
6
|
let(:ruby_cmd) { "ruby" }
|
7
7
|
|
8
8
|
before do
|
@@ -50,7 +50,7 @@ describe Autotest::Rspec2 do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
it "gives '--tty' to #{Autotest::Rspec2::
|
53
|
+
it "gives '--tty' to #{Autotest::Rspec2::RSPEC_EXECUTABLE}, not '--autotest'" do
|
54
54
|
cmd = rspec_autotest.make_test_cmd(@files_to_test)
|
55
55
|
cmd.should match(' --tty ')
|
56
56
|
cmd.should_not match(' --autotest ')
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 2.7.
|
9
|
+
- 1
|
10
|
+
version: 2.7.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chad Humphries
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: exe
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-10-
|
19
|
+
date: 2011-10-20 00:00:00 Z
|
20
20
|
dependencies: []
|
21
21
|
|
22
22
|
description: BDD for Ruby. RSpec runner and example groups.
|
@@ -222,7 +222,7 @@ rubyforge_project: rspec
|
|
222
222
|
rubygems_version: 1.8.11
|
223
223
|
signing_key:
|
224
224
|
specification_version: 3
|
225
|
-
summary: rspec-core-2.7.
|
225
|
+
summary: rspec-core-2.7.1
|
226
226
|
test_files:
|
227
227
|
- features/Autotest.md
|
228
228
|
- features/README.md
|