From 847f7cb33867f838320f718e82bf7fa5918cb0c3 Mon Sep 17 00:00:00 2001 From: nov Date: Tue, 28 Feb 2017 18:06:28 +0900 Subject: [PATCH] Edge::OpenGraph::Actions isn't included by User anymore --- .../fb_graph2/edge/open_graph/actions_spec.rb | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 spec/fb_graph2/edge/open_graph/actions_spec.rb diff --git a/spec/fb_graph2/edge/open_graph/actions_spec.rb b/spec/fb_graph2/edge/open_graph/actions_spec.rb deleted file mode 100644 index 8d0ad42..0000000 --- a/spec/fb_graph2/edge/open_graph/actions_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -require 'spec_helper' - -describe FbGraph2::Edge::OpenGraph::Actions do - context 'included in User' do - describe '#og_actions' do - let(:me) { FbGraph2::User.me('token') } - it 'should return an Array of FbGraph2::Post' do - actions = mock_graph :get, 'me/og.likes', 'user/og_actions_likes', access_token: 'token' do - me.og_actions 'og.likes' - end - actions.should be_instance_of FbGraph2::Edge - actions.should_not be_blank - actions.each do |action| - action.should be_instance_of FbGraph2::OpenGraph::Action - end - end - end - - describe '#og_action!' do - let(:user) { FbGraph2::User.new('user_id') } - it 'should return a FbGraph2::Post' do - mock_graph :post, 'user_id/og.likes', 'success_with_id', access_token: 'app_token' do - user.authenticate('app_token').og_action! 'og.likes', object: 'https://github.com/nov/fb_graph2/' - end.should be_instance_of FbGraph2::OpenGraph::Action - end - end - end -end