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

Version Path
editorial_logic-1.4.5 features/step_definitions/content_steps.rb
editorial_logic-1.4.4 features/step_definitions/content_steps.rb
editorial_logic-1.4.3 features/step_definitions/content_steps.rb
editorial_logic-1.4.2 features/step_definitions/content_steps.rb
editorial_logic-1.4.1 features/step_definitions/content_steps.rb
editorial_logic-1.4.0 features/step_definitions/content_steps.rb
editorial_logic-1.3.3 features/step_definitions/content_steps.rb
editorial_logic-1.3.2 features/step_definitions/content_steps.rb
editorial_logic-1.3.1 features/step_definitions/content_steps.rb
editorial_logic-1.3.0 features/step_definitions/content_steps.rb
editorial_logic-1.1.6 features/step_definitions/content_steps.rb
editorial_logic-1.1.5 features/step_definitions/content_steps.rb
editorial_logic-1.1.4 features/step_definitions/content_steps.rb
editorial_logic-1.1.3 features/step_definitions/content_steps.rb
editorial_logic-1.1.2 features/step_definitions/content_steps.rb
editorial_logic-1.1.1 features/step_definitions/content_steps.rb
editorial_logic-1.1.0 features/step_definitions/content_steps.rb