Fixes projects view specs.

Changes all planning_element_types to types, removes
enabled_planning_element_types.
pull/1203/head
Martin Czuchra 11 years ago
parent bc12a56274
commit 8dce5c2c8e
  1. 13
      spec/views/api/v2/projects/_project_api_rsb_spec.rb

@ -197,15 +197,12 @@ describe 'api/v2/projects/_project.api' do
before do
types = [
FactoryGirl.create(:planning_element_type, :color_id => color.id),
FactoryGirl.create(:planning_element_type, :color_id => color.id),
FactoryGirl.create(:planning_element_type, :color_id => color.id)
FactoryGirl.create(:type, :color_id => color.id),
FactoryGirl.create(:type, :color_id => color.id),
FactoryGirl.create(:type, :color_id => color.id)
]
types.each do |type|
FactoryGirl.create(:enabled_planning_element_type,
:project_id => project.id,
:planning_element_type_id => type.id)
end
project.types = types
project.save
end
describe 'project node' do

Loading…
Cancel
Save