Sha256: b2a9e09be4007bb0e635542acd6cbd7604f75ae17317589bd27b3c39f4e4cd90

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

require 'spec_helper'

describe ApiResource::Associations::ResourceScope do
  

  context "#load" do

    it "should perform the correct query" do

      TestResource.expects(:all)
        .with(:params => {
          "birthday" => {
            "date" => "2012-01-01"
          }
        })
        .returns([])

      TestResource.birthday("2012-01-01").first

    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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