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