shokkenki-provider 1.0.1 → 1.1.0
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.
@@ -0,0 +1,16 @@
|
|
1
|
+
module Shokkenki
|
2
|
+
module Provider
|
3
|
+
module RSpec
|
4
|
+
module Term
|
5
|
+
module DateTerm
|
6
|
+
def verify_within context
|
7
|
+
term_value = value
|
8
|
+
context.it %Q{is on #{term_value.iso8601}} do
|
9
|
+
@actual_values.each{ |value| expect(Date.parse(value.to_s)).to(eq(term_value)) }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Shokkenki
|
2
|
+
module Provider
|
3
|
+
module RSpec
|
4
|
+
module Term
|
5
|
+
module DateTimeTerm
|
6
|
+
def verify_within context
|
7
|
+
term_value = value
|
8
|
+
context.it %Q{is at #{term_value.iso8601}} do
|
9
|
+
@actual_values.each{ |value| expect(DateTime.parse(value.to_s)).to(eq(term_value)) }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -14,6 +14,8 @@ require_relative 'rspec/term/hash_term'
|
|
14
14
|
require_relative 'rspec/term/string_term'
|
15
15
|
require_relative 'rspec/term/number_term'
|
16
16
|
require_relative 'rspec/term/regexp_term'
|
17
|
+
require_relative 'rspec/term/date_term'
|
18
|
+
require_relative 'rspec/term/date_time_term'
|
17
19
|
require_relative 'rspec/term/json_paths_term'
|
18
20
|
|
19
21
|
Shokkenki::Provider::Model::Ticket.send :include, Shokkenki::Provider::RSpec::Ticket
|
@@ -22,6 +24,8 @@ Shokkenki::Provider::Model::Interaction.send :include, Shokkenki::Provider::RSpe
|
|
22
24
|
Shokkenki::Term::HashTerm.send :include, Shokkenki::Provider::RSpec::Term::HashTerm
|
23
25
|
Shokkenki::Term::StringTerm.send :include, Shokkenki::Provider::RSpec::Term::StringTerm
|
24
26
|
Shokkenki::Term::NumberTerm.send :include, Shokkenki::Provider::RSpec::Term::NumberTerm
|
27
|
+
Shokkenki::Term::DateTerm.send :include, Shokkenki::Provider::RSpec::Term::DateTerm
|
28
|
+
Shokkenki::Term::DateTimeTerm.send :include, Shokkenki::Provider::RSpec::Term::DateTimeTerm
|
25
29
|
Shokkenki::Term::RegexpTerm.send :include, Shokkenki::Provider::RSpec::Term::RegexpTerm
|
26
30
|
Shokkenki::Term::JsonPathsTerm.send :include, Shokkenki::Provider::RSpec::Term::JsonPathsTerm
|
27
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shokkenki-provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
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: 2014-02
|
12
|
+
date: 2014-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ! '>='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 1.
|
101
|
+
version: 1.1.0
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.
|
109
|
+
version: 1.1.0
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: rake
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,6 +174,8 @@ files:
|
|
174
174
|
- lib/shokkenki/provider/rspec.rb
|
175
175
|
- lib/shokkenki/provider/rspec/interaction.rb
|
176
176
|
- lib/shokkenki/provider/rspec/rspec_configuration.rb
|
177
|
+
- lib/shokkenki/provider/rspec/term/date_term.rb
|
178
|
+
- lib/shokkenki/provider/rspec/term/date_time_term.rb
|
177
179
|
- lib/shokkenki/provider/rspec/term/hash_term.rb
|
178
180
|
- lib/shokkenki/provider/rspec/term/json_paths_term.rb
|
179
181
|
- lib/shokkenki/provider/rspec/term/number_term.rb
|
@@ -205,11 +207,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
207
|
version: '0'
|
206
208
|
segments:
|
207
209
|
- 0
|
208
|
-
hash:
|
210
|
+
hash: 3263124680721121205
|
209
211
|
requirements: []
|
210
212
|
rubyforge_project:
|
211
213
|
rubygems_version: 1.8.23
|
212
214
|
signing_key:
|
213
215
|
specification_version: 3
|
214
|
-
summary: shokkenki-1.0
|
216
|
+
summary: shokkenki-1.1.0
|
215
217
|
test_files: []
|