Sha256: 4f2dc3d86d82e1d8f8f1910267407cdd788c895e511c41821fb6f4586d3b5080

Contents?: true

Size: 366 Bytes

Versions: 6

Compression:

Stored size: 366 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)
require File.expand_path('../../resource_test', __FILE__)

module MeducationSDK
  class BloggerTest < ResourceTest
    test_resource(Blogger, '/bloggers')

    def test_user_calls_sdk
      blogger = Blogger.new(user_id: 5)
      MeducationSDK::User.expects(:find).with(5)
      blogger.user
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
meducation_sdk-1.5.1 test/resources/blogger_test.rb
meducation_sdk-1.5.0 test/resources/blogger_test.rb
meducation_sdk-1.4.4 test/resources/blogger_test.rb
meducation_sdk-1.4.3 test/resources/blogger_test.rb
meducation_sdk-1.4.2 test/resources/blogger_test.rb
meducation_sdk-1.4.1 test/resources/blogger_test.rb