Sha256: 532bf062c69d202e9d9074a0fdcb881e5be6b6f42aa93d38bdf47ebe7de346e1

Contents?: true

Size: 476 Bytes

Versions: 11

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'

module GoTransverseTractApi

  RSpec.describe Product::Product do
    before(:each) { http_auth }

    context ".find_all" do
      it "returns all products" do
        data = described_class.find_all
        expect(data.count).to be > 1
      end
    end

    context ".find_by_eid" do
      it "returns a product for the given eid" do
        data = described_class.find_by_eid(50)
        expect(data['eid']).to eq('50')
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.4.3 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.4.2 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.4.1 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.4.0 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.3.4 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.3.3 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.3.2 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.3.1 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.3.0 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.2.5 spec/gotransverse-tract-api/product/product_spec.rb
gotransverse-tract-api-0.2.4 spec/gotransverse-tract-api/product/product_spec.rb