Sample
Here is a sample usage of its,
==== Code example
describe '#rate_for_date' do
context 'with date with in the range' do
subject do
FactoryGirl.build(:allocated_room_rate,
start_date: Time.zone.now,
end_date: 2.day.from_now,
price: 100...