testrbl 0.1.9 → 0.1.10

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testrbl (0.1.9)
4
+ testrbl (0.1.10)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/Readme.md CHANGED
@@ -15,6 +15,10 @@ Tips
15
15
  ====
16
16
  - `can't find executable testrb`: uninstall old version of test-unit, they define testrb in multiple incompatible ways
17
17
 
18
+ TODO
19
+ ====
20
+ - alternate minitest syntax: test_0017_should not link already linked URLs
21
+
18
22
  Author
19
23
  ======
20
24
  [Michael Grosser](http://grosser.it)<br/>
@@ -1,3 +1,3 @@
1
1
  module Testrbl
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
data/lib/testrbl.rb CHANGED
@@ -63,7 +63,8 @@ module Testrbl
63
63
  regex = Regexp.escape(test_name).gsub("'",".").gsub("\\ "," ").gsub(INTERPOLATION, ".*")
64
64
 
65
65
  if method == "should"
66
- regex = "#{method} #{regex}\. $"
66
+ optional_test_name = "(?:\(.*\))?"
67
+ regex = "#{method} #{regex}\. #{optional_test_name}$"
67
68
  elsif method == "test"
68
69
  # test "xxx -_ yyy"
69
70
  # test-unit: "test: xxx -_ yyy"
data/spec/testrbl_spec.rb CHANGED
@@ -361,11 +361,11 @@ describe Testrbl do
361
361
  end
362
362
 
363
363
  it "finds should do calls" do
364
- call(" should \"xx xx\" do\n").should == [" ", "should xx xx. $"]
364
+ call(" should \"xx xx\" do\n").should == [" ", "should xx xx. (?:(.*))?$"]
365
365
  end
366
366
 
367
367
  it "finds interpolated context do calls" do
368
- call(" should \"c\#{111}b\" do\n").should == [" ", "should c.*b. $"]
368
+ call(" should \"c\#{111}b\" do\n").should == [" ", "should c.*b. (?:(.*))?$"]
369
369
  end
370
370
 
371
371
  it "finds context do calls" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testrbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
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-06-19 00:00:00.000000000 Z
12
+ date: 2012-06-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: michael@grosser.it
@@ -44,7 +44,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
44
  version: '0'
45
45
  segments:
46
46
  - 0
47
- hash: 2807004336236414873
47
+ hash: 3990631787065738982
48
48
  required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: 2807004336236414873
56
+ hash: 3990631787065738982
57
57
  requirements: []
58
58
  rubyforge_project:
59
59
  rubygems_version: 1.8.24