Sha256: a651a7ea9370c022e4b5a5a58cf45da37b8f9d883a086fb6ef763dc9a79c8dae
Contents?: true
Size: 935 Bytes
Versions: 7
Compression:
Stored size: 935 Bytes
Contents
require 'test_helper' class Kaui::BundleTagsControllerTest < Kaui::FunctionalTestHelper test 'should handle Kill Bill errors when getting edit screen' do get :edit, :account_id => @account.account_id assert_redirected_to account_path(@account.account_id) assert_equal 'Required parameter missing: bundle_id', flash[:error] bundle_id = SecureRandom.uuid.to_s get :edit, :account_id => @account.account_id, :bundle_id => bundle_id assert_redirected_to account_path(@account.account_id) assert_equal "Error while communicating with the Kill Bill server: Error 404: Object id=#{bundle_id} type=BUNDLE doesn't exist!", flash[:error] end test 'should get edit' do get :edit, :account_id => @account.account_id, :bundle_id => @bundle.bundle_id assert_response 200 assert_not_nil assigns(:bundle_id) assert_not_nil assigns(:tag_names) assert_not_nil assigns(:available_tags) end end
Version data entries
7 entries across 7 versions & 1 rubygems