Sha256: e0af47160474a453a592ed24d6c13889dfd98bf1bb69cd280890e82f79dc9290
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../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.1.1 | spec/bookingsync/rental_spec.rb |
bookingsync-0.1.0 | spec/bookingsync/rental_spec.rb |