regis 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/features/regis_api.feature +5 -1
- data/features/step_definitions/api_steps.rb +5 -0
- data/lib/regis/responses/models/section.rb +2 -2
- data/lib/regis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzY0MDYzY2VhYjk0YmFmZmE0ODFlYzg0MjczODhmZTBiOTQ4NTE0OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGUyZTg5ZDViMmY4NjhkMTBhMjQwNjk5MDJkYzkwYjkwYzZlNTcxYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTg0ZjU5MTVhZWIwMjJmZTVlMDFkNDY3OWJjZTZmNmUzYWVmZjFiYTBlN2Fi
|
10
|
+
YTdkZTViN2EyYjA3OGNlZTk3MjdjNWViZjUwNDU3MjYzN2IxZTEzNDg3NmMz
|
11
|
+
NGM3YWE3NGM5NjI5OTQxNjg0ZmM1MDAyZjBkMDE4M2M1YmE1MjU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2RhYWQ5MzA2ZjE4ZGFhNTgwMTUwY2MwNWJmM2Y3MmU2YTBmN2NiOWFiZDk5
|
14
|
+
YjEyYmVlZDA2ZTEyNTk0YzJhYTVjYWY4NzYxMWE2OGZkODU2N2VlMTFlOTI4
|
15
|
+
NGI2MGZhZjE4ZmZmYjM5YjdjNjdiODIwMTc4OTM2NjI3ZWUyMzE=
|
data/features/regis_api.feature
CHANGED
@@ -20,4 +20,8 @@ Scenario: api is cached
|
|
20
20
|
And I ask for a section
|
21
21
|
Then I should receive the section I asked for
|
22
22
|
When I ask for a section
|
23
|
-
Then I should have a cached response
|
23
|
+
Then I should have a cached response
|
24
|
+
|
25
|
+
Scenario: section has formatted start and end dates
|
26
|
+
When I ask for a section
|
27
|
+
Then I should have formatted start and end dates
|
@@ -18,6 +18,11 @@ Then /^I should receive the section I asked for$/ do
|
|
18
18
|
expect(@response.section.secUUID == $REGIS_TEST_VALUES['section_uuid']).to be true
|
19
19
|
end
|
20
20
|
|
21
|
+
Then /^I should have formatted start and end dates$/ do
|
22
|
+
expect(@response.section.formatted_start_date).not_to be_empty
|
23
|
+
expect(@response.section.formatted_end_date).not_to be_empty
|
24
|
+
end
|
25
|
+
|
21
26
|
Then /^I should have populated section values$/ do
|
22
27
|
expect(@response.section.secUUID).not_to be_empty
|
23
28
|
expect(@response.section.reporting_term).not_to be_empty
|
@@ -50,11 +50,11 @@ module Regis
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def formatted_start_date(format="%b %-d")
|
53
|
-
DateTime.strptime(
|
53
|
+
DateTime.strptime(@start_date,"%Y-%m-%dT%H:%M:%S").strftime(format)
|
54
54
|
end
|
55
55
|
|
56
56
|
def formatted_end_date(format="%b %-d")
|
57
|
-
DateTime.strptime(
|
57
|
+
DateTime.strptime(@end_date,"%Y-%m-%dT%H:%M:%S").strftime(format)
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.formatted_term(value)
|
data/lib/regis/version.rb
CHANGED