Sha256: c20fdd858907aaf7c21b81cf69978f641ed7d0240b9d22279bd781199ccd96ae

Contents?: true

Size: 976 Bytes

Versions: 51

Compression:

Stored size: 976 Bytes

Contents

require 'spec_helper_integration'

feature 'Authorized applications' do
  background do
    @user   = User.create!(name: 'Joe', password: 'sekret')
    @client = client_exists(name: 'Amazing Client App')
    resource_owner_is_authenticated @user
    client_is_authorized @client, @user
  end

  scenario 'display user\'s authorized applications' do
    visit '/oauth/authorized_applications'
    i_should_see 'Amazing Client App'
  end

  scenario 'do not display other user\'s authorized applications' do
    client = client_exists(name: 'Another Client App')
    client_is_authorized client, User.create!(name: 'Joe', password: 'sekret')
    visit '/oauth/authorized_applications'
    i_should_not_see 'Another Client App'
  end

  scenario 'user revoke access to application' do
    visit '/oauth/authorized_applications'
    i_should_see 'Amazing Client App'
    click_on 'Revoke'
    i_should_see 'Application revoked'
    i_should_not_see 'Amazing Client App'
  end
end

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
doorkeeper-mongodb-4.2.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-sequel-1.5.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.4.3 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.4.2 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.4.1 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.4.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-mongodb-4.1.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.3.2 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.3.1 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.3.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-sequel-1.4.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-mongodb-4.0.1 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-mongodb-4.0.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-sequel-1.3.1 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-sequel-1.3.0 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-sequel-1.2.3 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-sequel-1.2.2 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.2.6 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-4.2.5 spec/requests/applications/authorized_applications_spec.rb
doorkeeper-sequel-1.2.1 spec/requests/applications/authorized_applications_spec.rb