Sha256: 95c6d48b4653632711f782f7c751b223c899619a5d1d524a193e39f1314788eb
Contents?: true
Size: 869 Bytes
Versions: 16
Compression:
Stored size: 869 Bytes
Contents
Given(/^an expired tasks$/) do @task = create(:flyboy_task, owner: @user, term: Time.zone.now.to_date-1) end Given(/^a task that expire tommorow$/) do @task = create(:flyboy_task, owner: @user, term: Time.zone.now.to_date+1) end Given(/^a task that expire today$/) do @task = create(:flyboy_task, owner: @user, term: Time.zone.now.to_date) end When(/^he go to the tasks summary page$/) do visit dorsale.summary_flyboy_tasks_path end Then(/^the task is classed as 'expired'$/) do expect(page).to have_content("En retard") expect(page).to have_content(@task.name) end Then(/^the task is classed as 'Expire Today'$/) do expect(page).to have_content("Aujourd'hui") expect(page).to have_content(@task.name) end Then(/^the task is classed as 'Expire tommorow'$/) do expect(page).to have_content("Demain") expect(page).to have_content(@task.name) end
Version data entries
16 entries across 16 versions & 1 rubygems