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-2.2.2 test/resources/author_test.rb
meducation_sdk-2.2.1 test/resources/author_test.rb
meducation_sdk-2.2.0 test/resources/author_test.rb
meducation_sdk-2.1.4 test/resources/author_test.rb
meducation_sdk-2.1.3 test/resources/author_test.rb
meducation_sdk-2.1.2 test/resources/author_test.rb
meducation_sdk-2.1.1 test/resources/author_test.rb
meducation_sdk-2.1.0 test/resources/author_test.rb
meducation_sdk-2.0.5 test/resources/author_test.rb
meducation_sdk-2.0.4 test/resources/author_test.rb
meducation_sdk-2.0.3 test/resources/author_test.rb
meducation_sdk-2.0.2 test/resources/author_test.rb
meducation_sdk-2.0.1 test/resources/author_test.rb
meducation_sdk-2.0.0 test/resources/author_test.rb
meducation_sdk-1.6.16 test/resources/author_test.rb
meducation_sdk-1.6.15 test/resources/author_test.rb
meducation_sdk-1.6.14 test/resources/author_test.rb
meducation_sdk-1.6.13 test/resources/author_test.rb
meducation_sdk-1.6.12 test/resources/author_test.rb
meducation_sdk-1.6.11 test/resources/author_test.rb