From 9af6e9883ad7bd98d2d8145554bd58574b57d7bb Mon Sep 17 00:00:00 2001 From: Daniel Alves + Diego Araújo + Guilherme Rojas Date: Thu, 28 Mar 2013 13:14:31 -0300 Subject: [PATCH] [Mezuro] Fixed step for repository feature. --- features/step_definitions/mezuro_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/mezuro_steps.rb b/features/step_definitions/mezuro_steps.rb index d445557..39c60f3 100644 --- a/features/step_definitions/mezuro_steps.rb +++ b/features/step_definitions/mezuro_steps.rb @@ -104,7 +104,7 @@ When /^I have a Mezuro (reading|repository) with the following data$/ do |type, end end if (type == "repository") - item.merge!(:configuration_id => Kalibro::Configuration.all.last.id) + item["configuration_id"] = Kalibro::Configuration.all.select {|configuration| configuration.name == item["configuration_id"] }.first.id item.merge!(:project_id => Kalibro::Project.all.last.id) Kalibro::Repository.create(item) elsif (type == "reading") -- libgit2 0.21.2