Displaying 1 result from an estimated 1 matches for "greeting_test".
2011 Jun 11
15
after initialize blowing up---help
...validates_uniqueness_of :count
def check_greet
self.language = lanugage.capitalize
end
end
=================== greeting.yml ==========================
hello:
greet: howdy
language: english
count: 44
hola:
greet: hola, que tal
language: spanish
count: 55
=================== greeting_test.rb ========================
require ''test_helper''
class GreetingTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "uniqueness of count" do
gg = Greeting.new(:language => ''esperanto'', :count =>
greetings(:hello)....