test/facebooker/session_test.rb in taweili-facebooker-1.0.45 vs test/facebooker/session_test.rb in taweili-facebooker-1.0.47
- old
+ new
@@ -243,9 +243,19 @@
false
)
@session.register_template_bundle(one_line, short_story, full_story)
end
+ def test_can_deactivate_template_bundle_by_id
+ @session = Facebooker::Session.create(ENV['FACBEOOK_API_KEY'], ENV['FACEBOOK_SECRET_KEY'])
+ @session.expects(:post).with(
+ 'facebook.feed.deactivateTemplateBundleByID',
+ {:template_bundle_id => '999'},
+ false
+ )
+ @session.deactivate_template_bundle_by_id(999)
+ end
+
def test_can_publish_user_action
expect_http_posts_with_responses(publish_user_action_return_xml)
@session = Facebooker::Session.create(ENV['FACEBOOK_API_KEY'], ENV['FACEBOOK_SECRET_KEY'])
assert @session.publish_user_action(17876842716,{})
end