stubs settings in spec

pull/6827/head
Jens Ulferts 10 years ago
parent 65f7e4921b
commit df29ee59e5
  1. 7
      spec/models/backlog_spec.rb
  2. 10
      spec/models/burndown_spec.rb

@ -40,11 +40,8 @@ describe Backlog do
before(:each) do
@feature = FactoryGirl.create(:type_feature)
Setting.plugin_openproject_backlogs = { "points_burn_direction" => "down",
"wiki_template" => "",
"card_spec" => "Sattleford VM-5040",
"story_types" => [@feature.id.to_s],
"task_type" => "0" }
allow(Setting).to receive(:plugin_openproject_backlogs).and_return({ "story_types" => [@feature.id.to_s],
"task_type" => "0" })
@status = FactoryGirl.create(:status)
end

@ -71,11 +71,11 @@ describe Burndown do
User.stub(:current).and_return(user)
Setting.plugin_openproject_backlogs = {"points_burn_direction" => "down",
"wiki_template" => "",
"card_spec" => "Sattleford VM-5040",
"story_types" => [type_feature.id.to_s],
"task_type" => type_task.id.to_s }
allow(Setting).to receive(:plugin_openproject_backlogs).and_return({"points_burn_direction" => "down",
"wiki_template" => "",
"card_spec" => "Sattleford VM-5040",
"story_types" => [type_feature.id.to_s],
"task_type" => type_task.id.to_s })
project.save!

Loading…
Cancel
Save