Sha256: 0d858ae8469ebb34e0bc803045ff7518e785a89be3fe5744e777c3d658fce0e0

Contents?: true

Size: 629 Bytes

Versions: 24

Compression:

Stored size: 629 Bytes

Contents

require 'test_helper'

class Kaui::BundlesControllerTest < ActionController::TestCase
  fixtures :accounts, :bundles

  test "should get index" do
    get :index, :use_route => 'kaui'
    assert_response :success
  end

  test "should find bundle by id" do
    pierre = accounts(:pierre)
    bundle = bundles(:bundle_for_pierre)

    get :show, :id => bundle["bundleId"], :use_route => 'kaui'
    assert_response :success
    assert_equal assigns(:account).account_id, pierre["accountId"]
    assert_equal assigns(:bundle).bundle_id, bundle["bundleId"]
    assert_equal assigns(:bundle).account_id, pierre["accountId"]
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
kaui-0.6.6 test/functional/kaui/bundles_controller_test.rb
kaui-0.6.5 test/functional/kaui/bundles_controller_test.rb
kaui-0.6.4 test/functional/kaui/bundles_controller_test.rb
kaui-0.6.3 test/functional/kaui/bundles_controller_test.rb
kaui-0.6.2 test/functional/kaui/bundles_controller_test.rb
kaui-0.6.1 test/functional/kaui/bundles_controller_test.rb
kaui-0.6.0 test/functional/kaui/bundles_controller_test.rb
kaui-0.5.3 test/functional/kaui/bundles_controller_test.rb
kaui-0.5.2 test/functional/kaui/bundles_controller_test.rb
kaui-0.5.1 test/functional/kaui/bundles_controller_test.rb
kaui-0.5.0 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.9 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.8 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.7 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.6 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.5 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.4 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.3 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.2 test/functional/kaui/bundles_controller_test.rb
kaui-0.4.1 test/functional/kaui/bundles_controller_test.rb