Sha256: 25d0d4abd920bbbb6adb3fa7b69a6dcca11738987de0ca06f3a5af92e6837ef5
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 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 = 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sshingler-jkl-0.0.5 | features/step_definitions/twitter_steps.rb |
sshingler-jkl-0.0.6 | features/step_definitions/twitter_steps.rb |