[#4420] Add the frequency field for Retainers to the Model and View.

This commit is contained in:
Eric Davis
2010-08-16 14:47:47 -07:00
parent 8321903598
commit 3e30629d44
4 changed files with 31 additions and 1 deletions
+5
View File
@@ -4,4 +4,9 @@ class RetainerDeliverableTest < ActiveSupport::TestCase
should "be a subclass of HourlyDeliverable" do
assert_equal HourlyDeliverable, RetainerDeliverable.superclass
end
context "#frequency" do
should_allow_values_for(:frequency, nil, '', 'monthly', 'quarterly')
should_not_allow_values_for(:frequency, 'anything', 'else', 'weekly')
end
end