Sha256: 7ab572517558517f0b24ebeff5bbd9f7f074d1a276ee5321c95564535bb56593

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

require 'spec_helper'

describe Axiom::Adapter::Arango::Visitor::Static, '#root' do
  subject { object.root }

  let(:object) { class_under_test.new(mock, mock) }
  let(:root)   { mock('Root')                     }

  let(:class_under_test) do
    root = self.root
    Class.new(described_class) do
      const_set(:ROOT, root)
    end
  end

  it_should_behave_like 'an idempotent method'

  it { should be(root) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-arango-adapter-0.0.2 spec/unit/axiom/adapter/arango/visitor/static/root_spec.rb
axiom-arango-adapter-0.0.1 spec/unit/axiom/adapter/arango/visitor/static/root_spec.rb