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