single_test 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/lib/single_test.rb CHANGED
Binary file
File without changes
data/single_test.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{single_test}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2010-05-14}
12
+ s.date = %q{2010-05-27}
13
13
  s.email = %q{grosser.michael@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
@@ -19,11 +19,11 @@ Gem::Specification.new do |s|
19
19
  "Rakefile",
20
20
  "VERSION",
21
21
  "lib/single_test.rb",
22
+ "lib/tasks/single_test.rake",
22
23
  "single_test.gemspec",
23
24
  "spec/example_finder_test.txt",
24
25
  "spec/single_test_spec.rb",
25
- "spec/spec_helper.rb",
26
- "tasks/single_test.rake"
26
+ "spec/spec_helper.rb"
27
27
  ]
28
28
  s.homepage = %q{http://github.com/grosser/single_test}
29
29
  s.rdoc_options = ["--charset=UTF-8"]
@@ -163,6 +163,20 @@ describe SingleTest do
163
163
  SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; script/spec --options spec/spec.opts xxx')
164
164
  SingleTest.run_test('spec','xxx')
165
165
  end
166
+
167
+ it "runs with spec if script/spec is not found" do
168
+ File.stub!(:exist?).and_return false
169
+ File.should_receive(:exist?).with('script/spec').and_return false
170
+ SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; spec xxx')
171
+ SingleTest.run_test('spec','xxx')
172
+ end
173
+
174
+ it "uses bundler if Gemfile is present" do
175
+ File.stub!(:exist?).and_return false
176
+ File.should_receive(:exist?).with('Gemfile').and_return true
177
+ SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; bundle exec spec xxx')
178
+ SingleTest.run_test('spec','xxx')
179
+ end
166
180
  end
167
181
 
168
182
  describe :load_tasks do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-14 00:00:00 +02:00
17
+ date: 2010-05-27 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -31,11 +31,11 @@ files:
31
31
  - Rakefile
32
32
  - VERSION
33
33
  - lib/single_test.rb
34
+ - lib/tasks/single_test.rake
34
35
  - single_test.gemspec
35
36
  - spec/example_finder_test.txt
36
37
  - spec/single_test_spec.rb
37
38
  - spec/spec_helper.rb
38
- - tasks/single_test.rake
39
39
  has_rdoc: true
40
40
  homepage: http://github.com/grosser/single_test
41
41
  licenses: []