Commit 9af6e9883ad7bd98d2d8145554bd58574b57d7bb

Authored by Daniel Alves + Diego Araújo + Guilherme Rojas
Committed by Paulo Meireles
1 parent 04df8fe3

[Mezuro] Fixed step for repository feature.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
features/step_definitions/mezuro_steps.rb
... ... @@ -104,7 +104,7 @@ When /^I have a Mezuro (reading|repository) with the following data$/ do |type,
104 104 end
105 105 end
106 106 if (type == "repository")
107   - item.merge!(:configuration_id => Kalibro::Configuration.all.last.id)
  107 + item["configuration_id"] = Kalibro::Configuration.all.select {|configuration| configuration.name == item["configuration_id"] }.first.id
108 108 item.merge!(:project_id => Kalibro::Project.all.last.id)
109 109 Kalibro::Repository.create(item)
110 110 elsif (type == "reading")
... ...