Merge pull request #86 from liftcode/master
Fixed support for skip_info option to ensure raw_info isn't called
Rashmi Yadav
9 years ago
52 | 52 |
end
|
53 | 53 |
end
|
54 | 54 |
|
|
55 |
describe 'skip_info option' do
|
|
56 |
context 'when skip info option is enabled' do
|
|
57 |
it 'should not include raw_info in extras hash' do
|
|
58 |
@options = { :skip_info => true }
|
|
59 |
allow(subject).to receive(:raw_info).and_return({:foo => 'bar'})
|
|
60 |
expect(subject.extra[:raw_info]).to eq(nil)
|
|
61 |
end
|
|
62 |
end
|
|
63 |
end
|
|
64 |
|
55 | 65 |
describe 'request_phase' do
|
56 | 66 |
context 'with no request params set and x_auth_access_type specified' do
|
57 | 67 |
before do
|