Sha256: 24e9c849e6c053b9ccbe06eaea61a065c74db81652417e429b8f8145d4554e33

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

require 'controllers/sessions/base_shared'

describe Puffer::Sessions::Simple do
  controller do
    def current_puffer_user
      model.to_adapter.get(session[:puffer_user_id])
    end
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

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