Sha256: a37a3384fb8589e30566cd54bd8bd023093f79b74749a1853e7c393d8a9f9523

Contents?: true

Size: 373 Bytes

Versions: 7

Compression:

Stored size: 373 Bytes

Contents

require_relative '../test_helper'
require_relative '../resource_test'

module MeducationSDK
  class UserDiscountCodeTest < ResourceTest
    test_resource(UserDiscountCode, '/user_discount_codes')

    def test_user_calls_sdk
      discount_code = UserDiscountCode.new(user_id: 2)
      MeducationSDK::User.expects(:find).with(2)
      discount_code.user
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
meducation_sdk-2.2.2 test/resources/user_discount_code_test.rb
meducation_sdk-2.2.1 test/resources/user_discount_code_test.rb
meducation_sdk-2.2.0 test/resources/user_discount_code_test.rb
meducation_sdk-2.1.4 test/resources/user_discount_code_test.rb
meducation_sdk-2.1.3 test/resources/user_discount_code_test.rb
meducation_sdk-2.1.2 test/resources/user_discount_code_test.rb
meducation_sdk-2.1.1 test/resources/user_discount_code_test.rb