Sha256: a9b0e43a4132f3f17581eed6919fc7fee7e9c18502c75a24c0890d384704343c

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require 'support/models/authorizy_cop'

RSpec.describe AuthorizyCop do
  subject(:cop) { described_class.new('current_user', 'params', 'session', 'controller', 'action') }

  it 'adds private attributes readers' do
    expect(cop.get_action).to       eq('action')
    expect(cop.get_controller).to   eq('controller')
    expect(cop.get_current_user).to eq('current_user')
    expect(cop.get_params).to       eq('params')
    expect(cop.get_session).to      eq('session')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authorizy-0.1.0 spec/authorizy/cop/model_spec.rb