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

Version Path
dorsale-4.0.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.20.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.19.1 features/step_definitions/tasks_summary_steps.rb
dorsale-3.19.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.18.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.17.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.16.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.15.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.11 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.10 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.9 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.8 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.7 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.6 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.5 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.3 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.2 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.1 features/step_definitions/tasks_summary_steps.rb
dorsale-3.14.0 features/step_definitions/tasks_summary_steps.rb
dorsale-3.13.0 features/step_definitions/tasks_summary_steps.rb