Sha256: 0c1c447ab4a52b7c7fe8086f371a5f70cbcf776d323dbbad89fc9220153971b6

Contents?: true

Size: 848 Bytes

Versions: 11

Compression:

Stored size: 848 Bytes

Contents

Given /^I have publications named (.+)$/ do |names|
  names.split(', ').each do |name|
    p = Publication.make(:name => "#{name}", :desired_slug => name, :content_type => 'Articles')
  end
end

Given /^I have a publication named "(.+)" with "(.+)" content/ do |name, content|
  Publication.make(:name => "#{name}", :desired_slug => name, :content_type => "#{content}")
end

Given /^the publication "(.+)" has an RSS feed$/ do |name|
  Publication.where(:name => "#{name}").first.update_attributes(:rss_feed_enabled => true)
end

Given /^I have no publications$/ do
  Publication.delete_all
end

Then /^I should have ([0-9]+) publication$/ do |count|
  Publication.count.should == count.to_i
end

When /^I visit "(.+)"$/ do |publication|
  publication = Publication.where(:name => publication).first
  visit admin_publication_url(publication)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
editorial_logic-1.3.3 features/step_definitions/publication_steps.rb
editorial_logic-1.3.2 features/step_definitions/publication_steps.rb
editorial_logic-1.3.1 features/step_definitions/publication_steps.rb
editorial_logic-1.3.0 features/step_definitions/publication_steps.rb
editorial_logic-1.1.6 features/step_definitions/publication_steps.rb
editorial_logic-1.1.5 features/step_definitions/publication_steps.rb
editorial_logic-1.1.4 features/step_definitions/publication_steps.rb
editorial_logic-1.1.3 features/step_definitions/publication_steps.rb
editorial_logic-1.1.2 features/step_definitions/publication_steps.rb
editorial_logic-1.1.1 features/step_definitions/publication_steps.rb
editorial_logic-1.1.0 features/step_definitions/publication_steps.rb