Sha256: c09a3c7530f09de53521d8b9f63b1fc33c985b0705dd085e2e709906bf92d20d

Contents?: true

Size: 1 KB

Versions: 6

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

describe Stenographer::AuthenticationsController, type: :controller do
  routes { Stenographer::Engine.routes }

  # Unclear why this doesn't match the route
  # describe '#create' do
  #   let(:auth_hash) { Faker::Omniauth.google }
  #
  #   def create_action(opts = {})
  #     request.env['omniauth.auth'] = auth_hash
  #
  #     get :create, params: {}.merge(opts)
  #   end
  #
  #   describe 'individual behaviors' do
  #     it 'creates an authentication' do
  #       expect {
  #         create_action
  #       }.to change(Stenographer::Authentication, :count).by(1)
  #     end
  #
  #     describe 'assignments' do
  #       before :each do
  #         create_action
  #       end
  #
  #       it 'assigns @authentication_count' do
  #         expect(Stenographer::Authentication.last.uid).to eq('a')
  #       end
  #
  #       it 'renders the index page' do
  #         expect(Stenographer::Authentication.last.provider).to eq('a')
  #       end
  #     end
  #   end
  # end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stenographer-rails-0.6.5 spec/controllers/stenographer/authentications_controller_spec.rb
stenographer-rails-0.6.4 spec/controllers/stenographer/authentications_controller_spec.rb
stenographer-rails-0.6.3 spec/controllers/stenographer/authentications_controller_spec.rb
stenographer-rails-0.6.2 spec/controllers/stenographer/authentications_controller_spec.rb
stenographer-rails-0.6.1 spec/controllers/stenographer/authentications_controller_spec.rb
stenographer-rails-0.6.0 spec/controllers/stenographer/authentications_controller_spec.rb