Sha256: b002f474571a9ace9e6c453158fcb559ef2dea2753aa634a6bcb279a5ca5acdd
Contents?: true
Size: 494 Bytes
Versions: 4
Compression:
Stored size: 494 Bytes
Contents
require_relative '../test_helper' require_relative '../resource_test' module MeducationSDK class BlogPostTest < ResourceTest test_resource(BlogPost, '/blog_posts') def test_user_calls_sdk blog_post = BlogPost.new(user_id: 5) MeducationSDK::User.expects(:find).with(5) blog_post.user end def test_blogger_calls_sdk blog_post = BlogPost.new(blogger_id: 8) MeducationSDK::Blogger.expects(:find).with(8) blog_post.blogger end end end
Version data entries
4 entries across 4 versions & 1 rubygems