Sha256: 74ed226c91e200e8067e65c840d3f48e4d71282ebf62a266d8bacdcaa15e8e5e
Contents?: true
Size: 587 Bytes
Versions: 12
Compression:
Stored size: 587 Bytes
Contents
require './spec/spec_helper' describe FloPlan do it "responds to" do expect(FloPlan).to respond_to(:find_by_listing_key) end describe "/listings/<listing_id>/videos", :support do before do stub_auth_request stub_api_get('/listings/1234/floplans','listings/floplans_index.json') end on_get_it "should correctly split images and thumbnails" do p = FloPlan.find_by_listing_key('1234').first expect(p.attributes['Images'].length).to eq(2) expect(p.images.length).to eq(1) expect(p.thumbnails.length).to eq(1) end end end
Version data entries
12 entries across 12 versions & 1 rubygems