<NME> util_spec.rb
<BEF> require 'spec_helper'

describe FbGraph2::Util do
  describe '.as_identifier' do
    context 'when FbGraph2::Node given' do
      it do
        FbGraph2::Util.as_identifier(
          FbGraph2::Node.new 'object_id'
        ).should == 'object_id'
      end
    end

    context 'when String given' do
      it do
        FbGraph2::Util.as_identifier('object_id').should == 'object_id'
      end
    end
  end
end

<MSG> user.revoke! permission

<DFF> @@ -15,5 +15,13 @@ describe FbGraph2::Util do
         FbGraph2::Util.as_identifier('object_id').should == 'object_id'
       end
     end
+
+    context 'when FbGraph2::Struct::Permission given' do
+      it do
+        FbGraph2::Util.as_identifier(
+          FbGraph2::Struct::Permission.new(permission: 'permission_name', granted: true)
+        ).should == 'permission_name'
+      end
+    end
   end
 end
\ No newline at end of file

{'addition_count': 8, 'commit_subject': 'user.revoke! permission', 'deletion_count': 0, 'file_extension': '.rb', 'lang': 'rb', 'license': 'mit', 'repo_name': 'nov/fb_graph2'}