Sha256: eba17c06c218aeae746fa12becc31c6e595b3da5290835757f5c3e190145b84a

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

require 'stoor/git_config'
require 'spec_helper'
require 'grit'
require 'repo'

module Stoor
  describe GitConfig do
    let(:inner_app) { ->(env) { [200, { }, []] } }
    let(:app) { GitConfig.new(inner_app, 'repo') }

    include_context 'repo'

    it 'finds git config user.name and user.email and puts them into the session under the key gollum.author' do
      get '/'
      expect(last_request.env['rack.session']['gollum.author']).to eq(name: 'Mortimer Snerd', email: 'snerd@example.com')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stoor-0.1.5 spec/lib/stoor/git_config_spec.rb