single_test 0.3.0 → 0.3.1

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/README.markdown CHANGED
@@ -37,6 +37,7 @@ As Gem:
37
37
  TIPS
38
38
  ====
39
39
  - if `script/spec` is missing, if will use just `spec` for specs (which solves some issues)
40
+ - run whole describe blocks: `describe 'xxx' do describe 'yyy'` --> `rake spec:file:'xxx yyy'`
40
41
 
41
42
  TODO
42
43
  ====
@@ -46,4 +47,4 @@ AUTHOR
46
47
  ======
47
48
  [Michael Grosser](http://pragmatig.wordpress.com)
48
49
  grosser.michael@gmail.com
49
- Hereby placed under public domain, do what you want, just do not hold me accountable...
50
+ Hereby placed under public domain, do what you want, just do not hold me accountable...
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/lib/single_test.rb CHANGED
@@ -89,7 +89,7 @@ module SingleTest
89
89
  def run_test(type, file, test_name=nil)
90
90
  case type.to_s
91
91
  when 'test' then sh "ruby -Ilib:test #{file} -n /#{test_name}/"
92
- when 'spec' then sh "export RAILS_ENV=test ; #{spec_executable} -O spec/spec.opts #{file}" + (test_name ? %Q( -e "#{test_name.sub('"',"\\\"")}") : '') + (ENV['X'] ? " -X" : "")
92
+ when 'spec' then sh "export RAILS_ENV=test ; #{spec_executable} --options spec/spec.opts #{file}" + (test_name ? %Q( -e "#{test_name.sub('"',"\\\"")}") : '') + (ENV['X'] ? " -X" : "")
93
93
  else raise "Unknown: #{type}"
94
94
  end
95
95
  end
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.0"
8
+ s.version = "0.3.1"
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{2009-12-13}
12
+ s.date = %q{2010-05-14}
13
13
  s.email = %q{grosser.michael@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "README.markdown"
@@ -28,11 +28,11 @@ Gem::Specification.new do |s|
28
28
  s.homepage = %q{http://github.com/grosser/single_test}
29
29
  s.rdoc_options = ["--charset=UTF-8"]
30
30
  s.require_paths = ["lib"]
31
- s.rubygems_version = %q{1.3.5}
31
+ s.rubygems_version = %q{1.3.6}
32
32
  s.summary = %q{Rake tasks to invoke single tests/specs with rakish syntax}
33
33
  s.test_files = [
34
- "spec/spec_helper.rb",
35
- "spec/single_test_spec.rb"
34
+ "spec/single_test_spec.rb",
35
+ "spec/spec_helper.rb"
36
36
  ]
37
37
 
38
38
  if s.respond_to? :specification_version then
@@ -134,23 +134,23 @@ describe SingleTest do
134
134
  end
135
135
 
136
136
  it "runs whole specs without -e" do
137
- SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; script/spec -O spec/spec.opts xxx')
137
+ SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; script/spec --options spec/spec.opts xxx')
138
138
  SingleTest.run_test('spec','xxx')
139
139
  end
140
140
 
141
141
  it "runs single specs through -e" do
142
- SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; script/spec -O spec/spec.opts xxx -e "yyy"')
142
+ SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; script/spec --options spec/spec.opts xxx -e "yyy"')
143
143
  SingleTest.run_test('spec','xxx', 'yyy')
144
144
  end
145
145
 
146
146
  it "runs single specs through -e with -X" do
147
147
  ENV['X']=''
148
- SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; script/spec -O spec/spec.opts xxx -e "yyy" -X')
148
+ SingleTest.should_receive(:sh).with('export RAILS_ENV=test ; script/spec --options spec/spec.opts xxx -e "yyy" -X')
149
149
  SingleTest.run_test('spec','xxx', 'yyy')
150
150
  end
151
151
 
152
152
  it "runs quoted specs though -e" do
153
- SingleTest.should_receive(:sh).with(%Q(export RAILS_ENV=test ; script/spec -O spec/spec.opts xxx -e "y\\\"yy" -X))
153
+ SingleTest.should_receive(:sh).with(%Q(export RAILS_ENV=test ; script/spec --options spec/spec.opts xxx -e "y\\\"yy" -X))
154
154
  SingleTest.run_test('spec','xxx', 'y"yy')
155
155
 
156
156
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: single_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 1
9
+ version: 0.3.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Michael Grosser
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-12-13 00:00:00 +01:00
17
+ date: 2010-05-14 00:00:00 +02:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -44,21 +49,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
49
  requirements:
45
50
  - - ">="
46
51
  - !ruby/object:Gem::Version
52
+ segments:
53
+ - 0
47
54
  version: "0"
48
- version:
49
55
  required_rubygems_version: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
53
61
  version: "0"
54
- version:
55
62
  requirements: []
56
63
 
57
64
  rubyforge_project:
58
- rubygems_version: 1.3.5
65
+ rubygems_version: 1.3.6
59
66
  signing_key:
60
67
  specification_version: 3
61
68
  summary: Rake tasks to invoke single tests/specs with rakish syntax
62
69
  test_files:
63
- - spec/spec_helper.rb
64
70
  - spec/single_test_spec.rb
71
+ - spec/spec_helper.rb