Sha256: 9838e8f52ac7450111521b27ff661c42f9ca1f13d21b95d69dfb93497c18fc79

Contents?: true

Size: 469 Bytes

Versions: 11

Compression:

Stored size: 469 Bytes

Contents

require 'test_helper'

class NestedBuilderTest < ActiveSupport::IntegrationCase

  test 'can use nested ids' do
    visit nested_builder_path(:id => :last_step, :nested_id => "foo")
    assert_has_content?("last")
    assert_has_content?("params[:nested_id] foo")
  end

  test 'forwards nested ids' do
    visit nested_builder_path(:id => :last_step, :nested_id => "foo")
    assert_has_content?("last")
    click_link 'next'
    assert_has_content?("home")
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wicked-2.0.0 test/integration/nested_builder_test.rb
wicked-1.4.0 test/integration/nested_builder_test.rb
wicked-1.3.4 test/integration/nested_builder_test.rb
wicked-1.3.3 test/integration/nested_builder_test.rb
wicked-1.3.2 test/integration/nested_builder_test.rb
wicked-1.3.1 test/integration/nested_builder_test.rb
wicked-1.3.0 test/integration/nested_builder_test.rb
wicked-1.2.1 test/integration/nested_builder_test.rb
wicked-1.1.1 test/integration/nested_builder_test.rb
wicked-1.1.0 test/integration/nested_builder_test.rb
wicked-1.0.3 test/integration/nested_builder_test.rb