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.7.4 spec/fb_graph2/util_spec.rb
fb_graph2-0.7.3 spec/fb_graph2/util_spec.rb
fb_graph2-0.7.2 spec/fb_graph2/util_spec.rb
fb_graph2-0.7.1 spec/fb_graph2/util_spec.rb
fb_graph2-0.7.0 spec/fb_graph2/util_spec.rb
fb_graph2-0.6.2 spec/fb_graph2/util_spec.rb
fb_graph2-0.6.1 spec/fb_graph2/util_spec.rb
fb_graph2-0.6.0 spec/fb_graph2/util_spec.rb
fb_graph2-0.5.3 spec/fb_graph2/util_spec.rb
fb_graph2-0.5.2 spec/fb_graph2/util_spec.rb
fb_graph2-0.5.1 spec/fb_graph2/util_spec.rb
fb_graph2-0.5.0 spec/fb_graph2/util_spec.rb
fb_graph2-0.4.4 spec/fb_graph2/util_spec.rb
fb_graph2-0.4.3 spec/fb_graph2/util_spec.rb
fb_graph2-0.4.1 spec/fb_graph2/util_spec.rb
fb_graph2-0.4.0 spec/fb_graph2/util_spec.rb
fb_graph2-0.3.2 spec/fb_graph2/util_spec.rb
fb_graph2-0.3.1 spec/fb_graph2/util_spec.rb
fb_graph2-0.3.0 spec/fb_graph2/util_spec.rb
fb_graph2-0.2.0 spec/fb_graph2/util_spec.rb