cucumber-core 1.0.0.beta.1 → 1.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3c0bb05acd739195cf8f0bd0b70eef1b871a4db
|
4
|
+
data.tar.gz: d88fa3acff3893e9c35572538d6accacc315cef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1438e706683ca3f1a404eeece0ad23d693128795819e5e73902101ddd4f1152e5015683f87fe285c9fe4b0a00ea93c78245d436abf6314a57b330ed521498ec
|
7
|
+
data.tar.gz: f45b790ea4a0cadf37da7ccaa357582193a7a570be9df6bbaead52345c9bf37dc78828ec9aca6f53e44d8609bd5ff6b017b9eff7dea1b35efc8a22a47e3ddaa5
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'cucumber/core/ast/describes_itself'
|
2
|
+
require 'delegate'
|
2
3
|
module Cucumber
|
3
4
|
module Core
|
4
5
|
module Ast
|
@@ -18,7 +19,7 @@ module Cucumber
|
|
18
19
|
#
|
19
20
|
# Note how the indentation from the source is stripped away.
|
20
21
|
#
|
21
|
-
class DocString
|
22
|
+
class DocString < SimpleDelegator
|
22
23
|
include HasLocation
|
23
24
|
include DescribesItself
|
24
25
|
attr_accessor :file
|
@@ -29,22 +30,7 @@ module Cucumber
|
|
29
30
|
@content = string
|
30
31
|
@content_type = content_type
|
31
32
|
@location = location
|
32
|
-
|
33
|
-
|
34
|
-
def encoding
|
35
|
-
@content.encoding
|
36
|
-
end
|
37
|
-
|
38
|
-
def to_str
|
39
|
-
@content
|
40
|
-
end
|
41
|
-
|
42
|
-
def to_s
|
43
|
-
to_str
|
44
|
-
end
|
45
|
-
|
46
|
-
def gsub(*args)
|
47
|
-
@content.gsub(*args)
|
33
|
+
super @content
|
48
34
|
end
|
49
35
|
|
50
36
|
def map
|
@@ -87,6 +87,10 @@ module Cucumber
|
|
87
87
|
set_backtrace(backtrace) if backtrace
|
88
88
|
end
|
89
89
|
|
90
|
+
def with_message(new_message)
|
91
|
+
self.class.new(new_message, duration, backtrace)
|
92
|
+
end
|
93
|
+
|
90
94
|
def with_duration(new_duration)
|
91
95
|
self.class.new(message, new_duration, backtrace)
|
92
96
|
end
|
@@ -70,6 +70,10 @@ module Cucumber
|
|
70
70
|
it 'delegates #gsub to the content string' do
|
71
71
|
expect( doc_string.gsub(/n/, '_') ).to eq 'co_te_t'
|
72
72
|
end
|
73
|
+
|
74
|
+
it 'delegates #split to the content string' do
|
75
|
+
expect(doc_string.split('n')).to eq ['co', 'te', 't']
|
76
|
+
end
|
73
77
|
end
|
74
78
|
end
|
75
79
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-08-
|
15
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: gherkin
|
@@ -198,7 +198,7 @@ rubyforge_project:
|
|
198
198
|
rubygems_version: 2.0.14
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
|
-
summary: cucumber-core-1.0.0.beta.
|
201
|
+
summary: cucumber-core-1.0.0.beta.2
|
202
202
|
test_files:
|
203
203
|
- spec/capture_warnings.rb
|
204
204
|
- spec/coverage.rb
|