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.24.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.23.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.22.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.22.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.21.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.21.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.20.3 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.20.2 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.20.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.20.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.19.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.18.3 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.18.2 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.18.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.18.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.17.2 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.17.1 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.17.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.16.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb
gotransverse-tract-api-0.15.0 spec/gotransverse-tract-api/usage/order_item_usage_rule_spec.rb