Sha256: 41656b8389255f857d381243f4e88b6cfceae42f3c1a01ac49a1d03ac8a2db96

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
jakal-0.1.6 features/step_definitions/twitter_steps.rb