Sha256: a78973216273b61f6c0180678ff41f16871fec63be08447655b50e21ccdf2ffe
Contents?: true
Size: 733 Bytes
Versions: 6
Compression:
Stored size: 733 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 it "returns a definition the word inputed" do puts @urban.defination(@word) end end
Version data entries
6 entries across 6 versions & 1 rubygems