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 | 31 | table.hashes.each do |row| |
32 | 32 | owner = row.delete("owner") |
33 | 33 | domain = row.delete("domain") |
34 | - city = row.delete("city") | |
35 | 34 | category = row.delete("category") |
36 | 35 | organization = klass.create!(row) |
37 | 36 | if owner |
... | ... | @@ -41,6 +40,7 @@ Given /^the following (community|communities|enterprises?|organizations?)$/ do | |
41 | 40 | d = Domain.new :name => domain, :owner => organization |
42 | 41 | d.save(false) |
43 | 42 | end |
43 | + city = row.delete("city") | |
44 | 44 | if city |
45 | 45 | c = City.find_by_name city |
46 | 46 | organization.region = c | ... | ... |