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.14.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.13.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.12.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.11.2 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.11.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.11.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.10.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.9.2 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.9.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.9.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.8.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.8.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.7.5 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.7.4 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.7.3 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.7.2 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.7.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.7.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.6.7 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.6.6 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb