Sha256: d58a465de43fa71f8d31d6373c514d53b009756ced09ff63b6a38ac8d00b0b60

Contents?: true

Size: 319 Bytes

Versions: 29

Compression:

Stored size: 319 Bytes

Contents

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

module MeducationSDK
  class AuthorTest < ResourceTest
    test_resource(Author, '/authors')

    def test_user_calls_sdk
      author = Author.new(user_id: 20)
      MeducationSDK::User.expects(:find).with(20)
      author.user
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
meducation_sdk-1.6.10 test/resources/author_test.rb
meducation_sdk-1.6.6 test/resources/author_test.rb
meducation_sdk-1.6.5 test/resources/author_test.rb
meducation_sdk-1.6.4 test/resources/author_test.rb
meducation_sdk-1.6.3 test/resources/author_test.rb
meducation_sdk-1.6.2 test/resources/author_test.rb
meducation_sdk-1.6.1 test/resources/author_test.rb
meducation_sdk-1.6.0 test/resources/author_test.rb
meducation_sdk-1.5.7 test/resources/author_test.rb