Sha256: 5045a4ca769f855c1774960ad6b4a747a01a5bc3de1347883a9ffd14ac142cfb
Contents?: true
Size: 584 Bytes
Versions: 22
Compression:
Stored size: 584 Bytes
Contents
require 'test_helper' class Kaui::BundlesControllerTest < ActionController::TestCase fixtures :accounts, :bundles test "should get index" do get :index assert_response :success end test "should find bundle by id" do pierre = accounts(:pierre) bundle = bundles(:bundle_for_pierre) get :show, :id => bundle["bundleId"] 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
22 entries across 22 versions & 1 rubygems