Sha256: 1064ca49f6f955d4767a0017719c87eeed31fdc8a5102b10867a175c3f8f3194

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

require 'spec_helper'

module Rambling
  describe Trie do
    describe '.create' do
      let(:root) { double('Trie::Root') }

      before :each do
        Trie::Root.stub(:new).and_return root
      end

      it 'returns a new instance of the trie root node' do
        Trie.create.should == root
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rambling-trie-0.4.0 spec/lib/rambling-trie_spec.rb