Sha256: 46bff2963effe6d71e351d3f7755f754462328c81c687efcbeca091f82385d54

Contents?: true

Size: 458 Bytes

Versions: 6

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

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

6 entries across 6 versions & 1 rubygems

Version Path
stoor-0.1.12 spec/lib/stoor/git_config_spec.rb
stoor-0.1.11 spec/lib/stoor/git_config_spec.rb
stoor-0.1.9 spec/lib/stoor/git_config_spec.rb
stoor-0.1.8 spec/lib/stoor/git_config_spec.rb
stoor-0.1.7 spec/lib/stoor/git_config_spec.rb
stoor-0.1.6 spec/lib/stoor/git_config_spec.rb