Sha256: e89ded978a592119507f4f808023888b44621a16ef05178ae8541cea61141fc1
Contents?: true
Size: 535 Bytes
Versions: 17
Compression:
Stored size: 535 Bytes
Contents
require 'test_helper' class JumpNavigationTest < ActiveSupport::IntegrationCase test 'consider jump_to when calling render_wizard with resource' do step = :first visit(jump_path(step, :resource => {:save => true}, :jump_to => :last_step)) assert has_content?('last_step') end test 'disregard jump_to when saving the resource fails' do step = :first visit(jump_path(step, :resource => {:save => false}, :jump_to => :last_step)) assert has_content?('first') assert !has_content?('last_step') end end
Version data entries
17 entries across 17 versions & 2 rubygems