removes special treatment of effective_date row for version tests

pull/495/head
jwollert 11 years ago
parent 0e4315ccc1
commit 3eabb40284
  1. 2
      features/step_definitions/version_steps.rb

@ -34,13 +34,11 @@ InstanceFinder.register(Version, Proc.new { |name| Version.find_by_name(name) })
Given /^the [Pp]roject (.+) has 1 version with(?: the following)?:$/ do |project, table|
project.gsub!("\"", "")
p = Project.find_by_name(project) || Project.find_by_identifier(project)
table.rows_hash["effective_date"] = eval(table.rows_hash["effective_date"]).to_date if table.rows_hash["effective_date"]
as_admin do
v = FactoryGirl.build(:version) do |v|
v.project = p
end
send_table_to_object(v, table)
end
end

Loading…
Cancel
Save