Sha256: a7d16c1e26660eb30fa8aae049e2f05fd93458f4be194650f764dc4851ece0a4

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

describe ApiResource::Associations::AssociationScope do

  before(:all) do
    TestResource.reload_resource_definition
  end

  context "#remote_path" do

    it "should provide access to its remote path when 
      instantiated through a parent" do

      test_resource = TestResource.find(1)
      test_resource.has_many_service_uri.remote_path.should eql(
        "/test_resource/1/has_many"
      )

    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_resource-0.5.1 spec/lib/associations/association_scope_spec.rb