Sha256: 342a6fee78ec466a7aba2e555a445f99bd5d798c96858c6d1d965d1031410f1f

Contents?: true

Size: 734 Bytes

Versions: 12

Compression:

Stored size: 734 Bytes

Contents

require 'test_helper'

class ClientAppControllerTest < ActiveSupport::IntegrationCase
  test 'must be logged in' do
    visit new_oauth_client_app_path
    assert_equal '/users/sign_in', current_path
  end

  test 'create client application' do
    user = create_user
    as_user(user).visit new_oauth_client_app_path
    assert_equal '/oauth_client_apps/new', current_path

    fill_in 'opro_oauth_client_app_name', :with => rand_name

    click_button 'submitApp'
    assert_equal '/oauth_client_apps', current_path

    last_client = Opro::Oauth::ClientApp.order(:created_at).last
    assert has_content?(last_client.name)
    assert has_content?(last_client.client_id)
    assert has_content?(last_client.client_secret)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
opro-0.4.0 test/integration/client_app_controller_test.rb
opro-0.3.3 test/integration/client_app_controller_test.rb
opro-0.3.2 test/integration/client_app_controller_test.rb
opro-0.3.1 test/integration/client_app_controller_test.rb
opro-0.3.0 test/integration/client_app_controller_test.rb
opro-0.3.0.pre3 test/integration/client_app_controller_test.rb
opro-0.3.0.pre2 test/integration/client_app_controller_test.rb
opro-0.3.0.pre1 test/integration/client_app_controller_test.rb
opro-0.3.0.pre test/integration/client_app_controller_test.rb
opro-0.2.1.pre test/integration/client_app_controller_test.rb
opro-0.2.0 test/integration/client_app_controller_test.rb
opro-0.1.0 test/integration/client_app_controller_test.rb