Sha256: cd74e6da643ea5572dab3f61e8201a5e2dc0a07e169aabe4e9d00dc183c35088

Contents?: true

Size: 382 Bytes

Versions: 13

Compression:

Stored size: 382 Bytes

Contents

require './spec/spec_helper'

describe Sort do
  before(:each) do
    stub_auth_request
  end

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

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

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spark_api-2.0.0 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.6.3 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.6.2 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.6.1 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.7 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.6.0 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.6 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.5 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.4 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.3 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.2 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.1 spec/unit/spark_api/models/sort_spec.rb
spark_api-1.5.0 spec/unit/spark_api/models/sort_spec.rb