Sha256: 055e2155edcb67e7084bcbdd260035b3a36255a2d03f9409dd36d87fb4b323f5
Contents?: true
Size: 752 Bytes
Versions: 17
Compression:
Stored size: 752 Bytes
Contents
Given /^the publication "(.+)" has the following contents$/ do |publication,table| @publication = Publication.where(:name => "#{publication}").first table.hashes.each do |hash| @publication.managed_contents.create(hash) @publication.save end end Given /^the article "(.+)" in the publication "(.+)" has the following sections$/ do |article, publication, table| @publication = Publication.where(:name => "#{publication}").first @article = @publication.managed_contents.where(:headline => "#{article}").first table.hashes.each do |hash| @article.sections.create(hash) @article.save end end Given /^I fill in attachment details$/ do attach_file('managed_content_document', "#{Rails.root}/features/fixtures/test.pdf") end
Version data entries
17 entries across 17 versions & 1 rubygems