Sha256: 1cf208f08c629891fa57fe301b8f32ec3ff3ac1647502ab7fd6b7757787b6b8b
Contents?: true
Size: 1.57 KB
Versions: 11
Compression:
Stored size: 1.57 KB
Contents
require 'test_helper' class StepPositionsTest < ActiveSupport::IntegrationCase test 'on first' do step = :first visit(step_position_path(step)) assert_has_content?('first step is the current step') # current_step? assert true # past_step? assert_has_content?('last_step step is a future step') # future_step? assert_has_content?('second step is a future step') # future_step? assert true # previous_step? assert_has_content?('second step is the next step') # next_step? end test 'on second' do step = :second visit(step_position_path(step)) assert_has_content?('second step is the current step') # current_step? assert_has_content?('first step is a past step') # past_step? assert_has_content?('last_step step is a future step') # future_step? assert_has_content?('first step was the previous step') # previous_step? assert_has_content?('last_step step is the next step') # next_step? end test 'string-based steps' do visit(string_step_path('second')) assert_has_content?('second step is the current step') # current_step? assert_has_content?('first step is a past step') # past_step? assert_has_content?('last_step step is a future step') # future_step? assert_has_content?('first step was the previous step') # previous_step? assert_has_content?('last_step step is the next step') # next_step? end end # current_step? # past_step? # future_step? # previous_step? # next_step?
Version data entries
11 entries across 11 versions & 1 rubygems