Commit debc04c964035ae76791435e6447f5733baea513
1 parent
3b669432
Exists in
master
and in
29 other branches
Fixed wrong placement of 'city' when creating organizations
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
features/step_definitions/noosfero_steps.rb
@@ -31,7 +31,6 @@ Given /^the following (community|communities|enterprises?|organizations?)$/ do | | @@ -31,7 +31,6 @@ Given /^the following (community|communities|enterprises?|organizations?)$/ do | | ||
31 | table.hashes.each do |row| | 31 | table.hashes.each do |row| |
32 | owner = row.delete("owner") | 32 | owner = row.delete("owner") |
33 | domain = row.delete("domain") | 33 | domain = row.delete("domain") |
34 | - city = row.delete("city") | ||
35 | category = row.delete("category") | 34 | category = row.delete("category") |
36 | organization = klass.create!(row) | 35 | organization = klass.create!(row) |
37 | if owner | 36 | if owner |
@@ -41,6 +40,7 @@ Given /^the following (community|communities|enterprises?|organizations?)$/ do | | @@ -41,6 +40,7 @@ Given /^the following (community|communities|enterprises?|organizations?)$/ do | | ||
41 | d = Domain.new :name => domain, :owner => organization | 40 | d = Domain.new :name => domain, :owner => organization |
42 | d.save(false) | 41 | d.save(false) |
43 | end | 42 | end |
43 | + city = row.delete("city") | ||
44 | if city | 44 | if city |
45 | c = City.find_by_name city | 45 | c = City.find_by_name city |
46 | organization.region = c | 46 | organization.region = c |