Sha256: da29022bde94968a544a76446c5aa7d06c475c83c18faa458160258a7c957c5f
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
require_relative '../test_helper' require_relative '../resource_test' module MeducationSDK class ViewTest < ResourceTest test_resource(View, '/view') def test_item_calls_sdk view = View.new(user_id: 30660, item_id: 2, item_type: "MediaFile") MeducationSDK::MediaFile.expects(:find).with(2) view.item end def test_user_calls_sdk view = View.new(user_id: 30660, item_id: 2, item_type: "MediaFile") MeducationSDK::User.expects(:find).with(30660) view.user end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
meducation_sdk-1.6.1 | test/resources/view_test.rb |