Sha256: 7a186e335380dc18a6223067f6685cb337d076220b284109b083ff059b6f8acf

Contents?: true

Size: 632 Bytes

Versions: 47

Compression:

Stored size: 632 Bytes

Contents

require 'spec_helper'

module GoTransverseTractApi

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

    context ".find_by_eid" do
      it "gets order item usage rules for the given eid" do
        actual_response = described_class.find_by_eid('81')
        expect(actual_response).to_not be_nil 
      end
    end

    context ".find_by_order_item_eid" do
      it "gets order item usage rules for the given eid" do
        actual_response = described_class.find_by_order_item_eid('274')
        expect(actual_response[:matchAllOrderItemUsageRule][:eid]).to_not be_nil
      end
    end

  end
end


Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.6.5 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.6.4 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.6.3 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.6.2 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.6.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.6.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.5.3 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb