Sha256: 777cbe87489eaa41e413fbc6f915edca1acb393eb64fd33ef0a445a340d3a3b0
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
require 'spec_helper' describe BookingSync::Rental do subject { BookingSync::Rental.new(:id => 1) } it { should be_a_kind_of BookingSync::Rental } it_should_behave_like "a paginated class" it "#bookings" do BookingSync::Booking.should_receive(:find_all_across_pages).with(:from=>"/rentals/1/bookings.xml").and_return("bookings") subject.bookings.should == 'bookings' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bookingsync-0.3.0 | spec/bookingsync/rental_spec.rb |
bookingsync-0.2.0 | spec/bookingsync/rental_spec.rb |