Sha256: 2273c08e31b2a09198728cad680302a0e4ba643012c48c3f96821fcce90b7a61
Contents?: true
Size: 481 Bytes
Versions: 9
Compression:
Stored size: 481 Bytes
Contents
Given /^I have a mock twitter response$/ do @response = File.open('features/mocks/twitter.json','r') {|f| f.readlines.to_s} end When /^I request trends data from twitter$/ do @url = YAML::load_file('config/config.yml')['twitter'] @response = Jkl::get_from @url end Then /^I should see some trends$/ do result = JSON.parse @response trends = result['trends'] trends.each do |subject| subject['name'].length.should > 1 subject['url'].length.should > 1 end end
Version data entries
9 entries across 9 versions & 1 rubygems