[#4420] Remove Deliverable#frequency, assumed to be monthly.
This commit is contained in:
@@ -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,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,
|
||||
|
||||
Reference in New Issue
Block a user