[#4420] Remove Deliverable#frequency, assumed to be monthly.

This commit is contained in:
Eric Davis
2010-09-01 20:24:29 -07:00
parent 6a0c6348ed
commit df53f27114
7 changed files with 10 additions and 20 deletions
@@ -122,7 +122,6 @@ class DeliverablesNewTest < ActionController::IntegrationTest
fill_in "Title", :with => 'A New Deliverable'
select "Retainer", :from => "Type"
select "Monthly", :from => 'deliverable_frequency'
select @manager.name, :from => "Manager"
fill_in "Start", :with => '2010-01-01'
fill_in "End Date", :with => '2010-12-31'
@@ -150,7 +149,6 @@ class DeliverablesNewTest < ActionController::IntegrationTest
assert_equal '2010-01-01', @deliverable.start_date.to_s
assert_equal '2010-12-31', @deliverable.end_date.to_s
assert_equal @manager, @deliverable.manager
assert_equal "monthly", @deliverable.frequency
# Budget items, one per month
labor_budgets = @deliverable.labor_budgets
-5
View File
@@ -5,11 +5,6 @@ class RetainerDeliverableTest < ActiveSupport::TestCase
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
context "#months" do
should "be an array of months the Deliverable is active in" do
d = RetainerDeliverable.new(:start_date => Date.today.beginning_of_month,