Created
December 5, 2016 19:36
-
-
Save hayduke19us/f64f8eedf7918819158792cfd7f24426 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
module Serializers | |
describe 'BookingRequest' do | |
let(:itinerary) { build :itinerary } | |
let(:booking_request) { build :booking_request } | |
subject(:serialized_booking_request) do | |
Serializers::BookingRequest.new | |
end | |
before do | |
allow(booking_request).to receive(:booked_itinerary).and_return(itinerary) | |
end | |
describe '#sanitized' do | |
it 'should have an agent_code' do | |
serialized_booking_request.sanitize(booking_request, :new_relic). | |
should == { agent_code: itinerary.agent_code } | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment