Days with leading zeros
This commit is contained in:
parent
70212ebbcf
commit
7ced28eb68
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ feature Conference do
|
||||||
set("#{Date.today.strftime('%B')}")
|
set("#{Date.today.strftime('%B')}")
|
||||||
page.
|
page.
|
||||||
find('div.nested-fields:nth-of-type(1) select:nth-of-type(3)').
|
find('div.nested-fields:nth-of-type(1) select:nth-of-type(3)').
|
||||||
set("#{Date.today.strftime('%d')}")
|
set("#{Date.today.strftime('%-d')}")
|
||||||
page.
|
page.
|
||||||
find('div.nested-fields:nth-of-type(1) div:nth-of-type(1) textarea').
|
find('div.nested-fields:nth-of-type(1) div:nth-of-type(1) textarea').
|
||||||
set('Example Person')
|
set('Example Person')
|
||||||
|
|
@ -39,7 +39,7 @@ feature Conference do
|
||||||
expect(find('div.nested-fields:nth-of-type(1) select:nth-of-type(2)').
|
expect(find('div.nested-fields:nth-of-type(1) select:nth-of-type(2)').
|
||||||
value).to eq("#{Date.today.month}")
|
value).to eq("#{Date.today.month}")
|
||||||
expect(find('div.nested-fields:nth-of-type(1) select:nth-of-type(3)').
|
expect(find('div.nested-fields:nth-of-type(1) select:nth-of-type(3)').
|
||||||
value).to eq("#{Date.today.strftime('%d')}")
|
value).to eq("#{Date.today.strftime('%-d')}")
|
||||||
expect(
|
expect(
|
||||||
find('div.nested-fields:nth-of-type(1) div:nth-of-type(1) textarea').
|
find('div.nested-fields:nth-of-type(1) div:nth-of-type(1) textarea').
|
||||||
value).to eq('Example Person')
|
value).to eq('Example Person')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue