diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-02 23:20:17 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-02 23:24:30 +0300 |
commit | 637dafde1dabfeb83a384fe48b845b2032b8a23a (patch) | |
tree | 2a4bffc3112d143aab8a1792de1e2db32f5e3197 /spec/features/issues_spec.rb | |
parent | 3212d47c68c4608e7140b16a30f89e4d26267c46 (diff) |
add rspec feature test
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index b071fe480e6..39de8775c8a 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -619,14 +619,16 @@ describe 'Issues', feature: true do end it 'adds due date to issue' do + date = Date.today.at_beginning_of_month + 2.days + page.within '.due_date' do click_link 'Edit' page.within '.ui-datepicker-calendar' do - first('.ui-state-default').click + click_link date.day end - expect(page).to have_no_content 'None' + expect(find('.value').text).to have_content date.strftime('%b %-d, %Y') end end |