Sha256: 54661380c9c464d9e49ae4823f2bb4cf7b8daa0bde8a8da0a9c909b31fdd33a6
Contents?: true
Size: 643 Bytes
Versions: 4
Compression:
Stored size: 643 Bytes
Contents
require "test_helper" describe "Generate" do before do @urban = UrbanPass::Generate.new @word = @urban.random_word end it "opens a new html document" do @word.wont_be_nil end it "removes all spaces from the word" do urban = @urban.remove_spaces(@word) urban.wont_include " " end it "returns length of word" do word = @urban.remove_spaces(@word) word_size = @urban.phrase_length(word) word_size.must_equal word.length end it "copies te returned word to the clipboard" do word = @urban.remove_spaces(@word) copied = @urban.copy(word) Clipboard.paste.must_equal copied end end
Version data entries
4 entries across 4 versions & 1 rubygems