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

Version Path
dorsale-3.8.1 features/step_definitions/tasks_summary_steps.rb
dorsale-3.8.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.8 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.7 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.6 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.5 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.4 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.2 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.1 features/step_definitions/tasks_summary_steps.rb
dorsale-3.7.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.6.1 features/step_definitions/tasks_summary_steps.rb
dorsale-3.6.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.5.2 features/step_definitions/tasks_summary_steps.rb
dorsale-3.5.1 features/step_definitions/tasks_summary_steps.rb
dorsale-3.5.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.4.0 features/step_definitions/tasks_summary_steps.rb