Sha256: 040491c4bdbe7aa4eb5ebd65cf6fe8ffddbf86ac6e4775d1384f72e1ebab3745

Contents?: true

Size: 911 Bytes

Versions: 18

Compression:

Stored size: 911 Bytes

Contents

Given /^input of "([^\"]*)" text$/ do |feature|
  flannel_filename = File.join("features", "fixtures", "#{feature}.flannel")
  out_filename = File.join("features", "fixtures", "#{feature}.out")
  @before = File.read(flannel_filename)
  @after = File.read(out_filename)
  @wiki_link = nil
end

When /^I quilt it with flannel$/ do
  @output = Flannel.quilt @before, :wiki_link => @wiki_link
end

Then /^valid html should be produced$/ do
  assert_equal @after, @output
end

Given /^a formatter of '([^\"']*)'$/ do |formatter|
  @wiki_link = lambda { |keyword| eval formatter }
end

Given /^the necessary feeds$/ do
  require 'mocha'
  
  devlicious = File.read(File.join(File.dirname(__FILE__), "..", "fixtures", "devlicious.rss"))
  rubyyot = File.read(File.join(File.dirname(__FILE__), "..", "fixtures", "rubyyot.rss"))
  Flannel::FeedParser.any_instance.stubs(:get_document).returns(rubyyot, devlicious)
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
flannel-0.2.14 features/step_definitions/flannel_steps.rb
flannel-0.2.13 features/step_definitions/flannel_steps.rb
flannel-0.2.12 features/step_definitions/flannel_steps.rb
flannel-0.2.11 features/step_definitions/flannel_steps.rb
flannel-0.2.10 features/step_definitions/flannel_steps.rb
flannel-0.2.9 features/step_definitions/flannel_steps.rb
flannel-0.2.7 features/step_definitions/flannel_steps.rb
flannel-0.2.6 features/step_definitions/flannel_steps.rb
flannel-0.2.5 features/step_definitions/flannel_steps.rb
flannel-0.2.4 features/step_definitions/flannel_steps.rb
flannel-0.2.3 features/step_definitions/flannel_steps.rb
flannel-0.2.1 features/step_definitions/flannel_steps.rb
flannel-0.1.5 features/step_definitions/flannel_steps.rb
flannel-0.1.4 features/step_definitions/flannel_steps.rb
flannel-0.1.3 features/step_definitions/flannel_steps.rb
flannel-0.1.2 features/step_definitions/flannel_steps.rb
flannel-0.1.1 features/step_definitions/flannel_steps.rb
flannel-0.1.0 features/step_definitions/flannel_steps.rb