Sha256: 3cc7c04652296937b4a1ca188fa17301dd75375bfac01892b4d743e9f26143ba

Contents?: true

Size: 675 Bytes

Versions: 8

Compression:

Stored size: 675 Bytes

Contents

require 'test_helper'

module Kaui
  class AdminAllowedUsersControllerTest < Kaui::FunctionalTestHelper
    test "should get new" do
      post :new
      assert_response :success
    end

    test "should get create" do
      post :create, :allowed_user => { :kb_username => 'Albator', :description => 'My french super hero'}
      assert_response 302
    end

    test 'should get index' do
      get :index
      assert_response 200
    end


    test "should get show" do
      au = Kaui::AllowedUser.new
      au.kb_username = 'Mad Max'
      au.description = 'My super hero'
      au.save!
      get :show, :id => au.id
      assert_response :success
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kaui-0.11.0 test/functional/kaui/admin_allowed_users_controller_test.rb
kaui-0.10.0 test/functional/kaui/admin_allowed_users_controller_test.rb
kaui-0.9.0 test/functional/kaui/admin_allowed_users_controller_test.rb
kaui-0.8.4 test/functional/kaui/admin_allowed_users_controller_test.rb
kaui-0.8.3 test/functional/kaui/admin_allowed_users_controller_test.rb
kaui-0.8.2 test/functional/kaui/admin_allowed_users_controller_test.rb
kaui-0.8.1 test/functional/kaui/admin_allowed_users_controller_test.rb
kaui-0.8.0 test/functional/kaui/admin_allowed_users_controller_test.rb