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