Sha256: afb65d2a50a7619834916a366b99d6f91226f26f046cb499f519b55ea7e12b14
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
Given /^the tweet:$/ do |json_tweet| @tweet = JSON.parse json_tweet end And /^the viewer:$/ do |json_viewer| @viewer = JSON.parse json_viewer end When /^I convert it into schema.org\/Article\/Small$/ do @translated = Fetcher::Microdata::ArticleSmall.new :twitter, @tweet, @viewer end Then /^I should have:$/ do |json_schema| @schema = JSON.parse json_schema #binding.pry @translated.to.hash.should == @schema end Given /^the user:$/ do |json_user| @user = JSON.parse json_user end When /^I convert it into schema.org\/Person\/User$/ do @translated = Fetcher::Microdata::PersonUser.new :twitter, @user end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fetcher-microdata-twitter-0.0.3 | features/stepdefs/translate_tweet_to_schema.rb |