Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e8df825f32
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (48 sloc) 2.229 kb
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
end
class StepPositionsEditTest < ActiveSupport::IntegrationCase
test 'on first' do
step = :first
visit(edit_step_positions2_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(edit_step_positions2_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
end
# current_step?
# past_step?
# future_step?
# previous_step?
# next_step?
Jump to Line
Something went wrong with that request. Please try again.