Generate random short words. Good for human-readable confirmation codes.
gem install webster
require 'rubygems'
require 'webster'
webster = Webster.new
webster.random_word
=> "spoonless"
context "Subscription#activation_code" do
setup do
subscription = Factory :subscription
@word = subscription.set_activation_code
end
should_be_webster_word "@word"
end
Webster was written for Umbrella Today? by thoughtbot.
It was extracted into a stand-alone Ruby gem by Dan Croak and Jared Carroll.
MIT License, same terms as Ruby