Sha256: 1e350287cb3b4ce32672ccd60ef38d8ded3b022456479702e2ef1143281c29d6

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

require './spec/spec_helper'

describe FloPlan do

  it "responds to" do
    FloPlan.should 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
      p.attributes['Images'].length.should == 2
      p.images.length.should == 1
      p.thumbnails.length.should == 1
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spark_api-1.4.34 spec/unit/spark_api/models/floplan_spec.rb