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

Version Path
wicked-1.0.2 test/integration/jump_test.rb
wicked-1.0.1 test/integration/jump_test.rb
wicked-1.0.0 test/integration/jump_test.rb
wicked-0.6.1 test/integration/jump_test.rb
wicked-0.6.0 test/integration/jump_test.rb
wicked-0.5.0 test/integration/jump_test.rb
wicked-0.4.0 test/integration/jump_test.rb
wicked-0.3.4 test/integration/jump_test.rb
wicked-0.3.3 test/integration/jump_test.rb
wicked-0.3.2 test/integration/jump_test.rb
wicked-0.3.1 test/integration/jump_test.rb
wicked-0.3.0 test/integration/jump_test.rb
wicked-focused-0.2.2 test/integration/jump_test.rb
wicked-focused-0.2.1 test/integration/jump_test.rb
wicked-focused-0.2.0 test/integration/jump_test.rb
wicked-0.2.0 test/integration/jump_test.rb
wicked-0.1.6 test/integration/jump_test.rb