test/features/generate_test.rb in urban_pass-0.0.2.2 vs test/features/generate_test.rb in urban_pass-0.0.3.1
- old
+ new
@@ -18,6 +18,12 @@
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