Commit 8742e423dd60886e41b15c7da26d273ec0333ee0
1 parent
093c1ebc
Exists in
master
and in
29 other branches
Adding steps improperly removed on conflict resolution
Commit: fe61ff4dba71505555c48eae9d81ef70d2dc19c8
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
features/step_definitions/noosfero_steps.rb
@@ -396,3 +396,18 @@ Given /^"([^\"]*)" asked to join "([^\"]*)"$/ do |person, organization| | @@ -396,3 +396,18 @@ Given /^"([^\"]*)" asked to join "([^\"]*)"$/ do |person, organization| | ||
396 | organization = Organization.find_by_name(organization) | 396 | organization = Organization.find_by_name(organization) |
397 | AddMember.create!(:person => person, :organization => organization) | 397 | AddMember.create!(:person => person, :organization => organization) |
398 | end | 398 | end |
399 | + | ||
400 | +Given /^that the default environment have (.+) templates?$/ do |option| | ||
401 | + env = Environment.default | ||
402 | + case option | ||
403 | + when 'all profile' | ||
404 | + env.create_templates | ||
405 | + when 'no Inactive Enterprise' | ||
406 | + env.inactive_enterprise_template && env.inactive_enterprise_template.destroy | ||
407 | + end | ||
408 | +end | ||
409 | + | ||
410 | +Given /^the environment domain is "([^\"]*)"$/ do |domain| | ||
411 | + d = Domain.new :name => domain, :owner => Environment.default | ||
412 | + d.save(false) | ||
413 | +end |