Sha256: 6a8c55d3eb32ee2fbf9c968c7143cd575e45d16ca38fd9f6339011232fca69a8

Contents?: true

Size: 713 Bytes

Versions: 1

Compression:

Stored size: 713 Bytes

Contents

require 'wordlist/builder'

require 'spec_helper'
require 'helpers/text'
require 'builder_examples'

require 'tempfile'
require 'fileutils'

describe Builder do
  describe "new wordlist" do
    before(:all) do
      @expected = ['dog', 'cat', 'catx', 'dat']
    end

    before(:each) do
      @path = Tempfile.new('wordlist').path
    end

    it_should_behave_like "a wordlist Builder"
  end

  describe "existing wordlist" do
    before(:all) do
      @path = '/tmp/bla'
      @expected = ['dog', 'cat', 'log', 'catx', 'dat']
    end

    before(:each) do
      @path = Tempfile.new('wordlist').path
      FileUtils.cp(PREVIOUS_WORDLIST,@path)
    end

    it_should_behave_like "a wordlist Builder"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wordlist-0.1.0 spec/builder_spec.rb