Sha256: f4df543776213e2da95b69670e9c533babe0e7111e7dbe72f244bcf850037cfd

Contents?: true

Size: 412 Bytes

Versions: 31

Compression:

Stored size: 412 Bytes

Contents

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
fb_graph2-0.1.3 spec/fb_graph2/util_spec.rb
fb_graph2-0.1.2 spec/fb_graph2/util_spec.rb
fb_graph2-0.1.1 spec/fb_graph2/util_spec.rb
fb_graph2-0.1.0 spec/fb_graph2/util_spec.rb
fb_graph2-0.0.11 spec/fb_graph2/util_spec.rb
fb_graph2-0.0.10 spec/fb_graph2/util_spec.rb
fb_graph2-0.0.9 spec/fb_graph2/util_spec.rb
fb_graph2-0.0.8 spec/fb_graph2/util_spec.rb
fb_graph2-0.0.7 spec/fb_graph2/util_spec.rb
fb_graph2-0.0.6 spec/fb_graph2/util_spec.rb
fb_graph2-0.0.5 spec/fb_graph2/util_spec.rb