Sha256: f3b948caca7770235d3b25cbe5441b9303b45064b28fe71d6c2812514db73f4b

Contents?: true

Size: 370 Bytes

Versions: 35

Compression:

Stored size: 370 Bytes

Contents

require './spec/spec_helper'

describe Sort do
  before(:each) do
    stub_auth_request
  end

  it "should include the finders module" do
    Sort.should respond_to(:find)
  end

  it "should return sorts" do
    stub_api_get("/searchtemplates/sorts", 'sorts/get.json')
    sorts = Sort.find(:all)
    sorts.should be_an(Array)
    sorts.length.should eq(1)
  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spark_api-1.4.34 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.32 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.31 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.29 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.28 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.27 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.26 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.25 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.24 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.23 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.22 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.21 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.20 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.19 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.18 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.17 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.16 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.15 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.14 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.4.13 spec/unit/spark_api/models/sort_spec.rb