Sha256: 4ef90d2c6e6d7958eec420e1a142a22ab043974da711ebed78f6248b7f22aa3c

Contents?: true

Size: 414 Bytes

Versions: 7

Compression:

Stored size: 414 Bytes

Contents

require 'test_helper'

class BarControllerTest < WickedControllerTestCase

  test 'index redirects to the first step' do
    get :index
    assert_redirected_to bar_path(:first)
  end

  test 'index redirects to the first step, preserving query args' do
    get :index, params: { :some => 'arguments', :were => 'passed' }
    assert_redirected_to bar_path(:first, :some => 'arguments', :were => 'passed')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wicked-2.0.0 test/controllers/bar_controller_test.rb
wicked-1.4.0 test/controllers/bar_controller_test.rb
wicked-1.3.4 test/controllers/bar_controller_test.rb
wicked-1.3.3 test/controllers/bar_controller_test.rb
wicked-1.3.2 test/controllers/bar_controller_test.rb
wicked-1.3.1 test/controllers/bar_controller_test.rb
wicked-1.3.0 test/controllers/bar_controller_test.rb