Sha256: 7d85f566be02121277ac13d25eec3dd9b6aefccfa485f6353475ffd7fd94350b

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

require 'clearance/testing'
require 'controllers/sessions/base_shared'

describe Puffer::Sessions::Clearance do
  controller do
    include Clearance::Authentication

    setup do
      model_name :clearance_user
    end

    def current_puffer_user
      current_user
    end
  end

  it_behaves_like "a session controller" do
    let(:user) {Fabricate :clearance_user}
    let(:param_key) {:clearance_user}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.1.1 spec/controllers/sessions/clearance_spec.rb