Sha256: 1240951f0adde2709711f82f8ba884ecd4316c768633871c432c0dc38dd28330
Contents?: true
Size: 843 Bytes
Versions: 35
Compression:
Stored size: 843 Bytes
Contents
Given(/^an expired tasks$/) do @task = create(:flyboy_task, owner: @user, term: Date.current-1) end Given(/^a task that expire tommorow$/) do @task = create(:flyboy_task, owner: @user, term: Date.current+1) end Given(/^a task that expire today$/) do @task = create(:flyboy_task, owner: @user, term: Date.current) 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
35 entries across 35 versions & 1 rubygems