@@ -27,13 +27,13 @@ module Squcumber
27
27
expect ( dummy_class . new . convert_mock_value ( '30 days from now' ) ) . to eql ( '2017-08-14' )
28
28
end
29
29
it 'converts to day' do
30
- expect ( dummy_class . new . convert_mock_value ( '10 days from now (as day)' ) ) . to eql ( 25 )
30
+ expect ( dummy_class . new . convert_mock_value ( '10 days from now (as day)' ) ) . to eql ( '25' )
31
31
end
32
32
it 'converts to month' do
33
- expect ( dummy_class . new . convert_mock_value ( '30 days from now (as month)' ) ) . to eql ( 8 )
33
+ expect ( dummy_class . new . convert_mock_value ( '30 days from now (as month)' ) ) . to eql ( '8' )
34
34
end
35
35
it 'converts to year' do
36
- expect ( dummy_class . new . convert_mock_value ( '30 days from now (as year)' ) ) . to eql ( 2017 )
36
+ expect ( dummy_class . new . convert_mock_value ( '30 days from now (as year)' ) ) . to eql ( ' 2017' )
37
37
end
38
38
it 'sets beginning of day' do
39
39
expect ( dummy_class . new . convert_mock_value ( 'beginning of day 10 days from now' ) ) . to eql ( '2017-07-25' )
@@ -57,13 +57,13 @@ module Squcumber
57
57
expect ( dummy_class . new . convert_mock_value ( '10 months from now' ) ) . to eql ( '2018-05-15' )
58
58
end
59
59
it 'converts to day' do
60
- expect ( dummy_class . new . convert_mock_value ( '10 months from now (as day)' ) ) . to eql ( 15 )
60
+ expect ( dummy_class . new . convert_mock_value ( '10 months from now (as day)' ) ) . to eql ( '15' )
61
61
end
62
62
it 'converts to month' do
63
- expect ( dummy_class . new . convert_mock_value ( '10 months from now (as month)' ) ) . to eql ( 5 )
63
+ expect ( dummy_class . new . convert_mock_value ( '10 months from now (as month)' ) ) . to eql ( '5' )
64
64
end
65
65
it 'converts to year' do
66
- expect ( dummy_class . new . convert_mock_value ( '10 months from now (as year)' ) ) . to eql ( 2018 )
66
+ expect ( dummy_class . new . convert_mock_value ( '10 months from now (as year)' ) ) . to eql ( ' 2018' )
67
67
end
68
68
it 'sets beginning of month' do
69
69
expect ( dummy_class . new . convert_mock_value ( 'beginning of month 10 months from now' ) ) . to eql ( '2018-05-01' )
@@ -87,13 +87,13 @@ module Squcumber
87
87
expect ( dummy_class . new . convert_mock_value ( '10 years from now' ) ) . to eql ( '2027-07-15' )
88
88
end
89
89
it 'converts to day' do
90
- expect ( dummy_class . new . convert_mock_value ( '10 years from now (as day)' ) ) . to eql ( 15 )
90
+ expect ( dummy_class . new . convert_mock_value ( '10 years from now (as day)' ) ) . to eql ( '15' )
91
91
end
92
92
it 'converts to month' do
93
- expect ( dummy_class . new . convert_mock_value ( '10 years from now (as month)' ) ) . to eql ( 7 )
93
+ expect ( dummy_class . new . convert_mock_value ( '10 years from now (as month)' ) ) . to eql ( '7' )
94
94
end
95
95
it 'converts to year' do
96
- expect ( dummy_class . new . convert_mock_value ( '10 years from now (as year)' ) ) . to eql ( 2027 )
96
+ expect ( dummy_class . new . convert_mock_value ( '10 years from now (as year)' ) ) . to eql ( ' 2027' )
97
97
end
98
98
it 'sets beginning of year' do
99
99
expect ( dummy_class . new . convert_mock_value ( 'beginning of year 10 months from now' ) ) . to eql ( '2018-01-01' )
0 commit comments