Sha256: b98268a7eba2c36948f0b5f417371378b458e94193e9c12ebcf31bdc8b9f0b0b
Contents?: true
Size: 906 Bytes
Versions: 3
Compression:
Stored size: 906 Bytes
Contents
############### pending steps below ################ When /^I request tags for the first story$/ do r = Jkl::get_from_calais @story Jkl::get_tag_from_json(get_from_calais(@story)) do |tag| tag.each{|k,v| puts "#{k} : #{v}"} end end When /^I request stories from Topix$/ do search_term = 'london' url = "#{YAML::load_file('config/config.yml')['topix']}#{search_term}" @response = Jkl::get_from_as_xml url end When /^I get some news stories from the first keyword$/ do search_term = @trend['name'].gsub('#','') #removing hash from start of trend name search_term = 'london' url = "#{YAML::load_file('config/config.yml')['topix']}#{search_term}" rss_response = Jkl::get_from_as_xml url items = Jkl::get_items_from rss_response links = [] items.each do |item| links << attribute_from(item, :link) end @story = Jkl::sanitize Jkl::from_doc Jkl::get_from links[0] end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jakal-0.0.9 | features/step_definitions/processing_steps.rb |
jakal-0.0.8 | features/step_definitions/processing_steps.rb |
jakal-0.0.7 | features/step_definitions/processing_steps.rb |