Sha256: 34718117c7ff1fe0f84e96d27b580767cb517e8086e48b00bbb88a96d81644ee

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

require 'spec_helper'

describe RobotVim::FileNameGenerator do
  describe "generating a file name" do
    it "returns a unique name each time" do
      names = (1..5).map{|x| RobotVim::FileNameGenerator.generate}
      names.uniq.size.should eql(names.size)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
robot-vim-2.0.1 spec/robot-vim/file_name_generator_spec.rb
robot-vim-2.0.0 spec/robot-vim/file_name_generator_spec.rb
robot-vim-1.1.0 spec/robot-vim/file_name_generator_spec.rb
robot-vim-1.0.0 spec/robot-vim/file_name_generator_spec.rb
robot-vim-0.10.0 spec/robot-vim/file_name_generator_spec.rb