Sha256: d55dac8e362b67e79002395e13d1e9ae6c20edc6a1d61364d70be1d9fd33b662
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
Given /^the tweet:$/ do |json_tweet| @tweet = JSON.parse json_tweet end When /^I convert it into schema.org\/Article\/Small$/ do @translated = Fetcher::Microdata::Twitter::ArticleSmall.new @tweet 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::Twitter::PersonUser.new @user end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fetcher-microdata-twitter-0.0.1 | features/stepdefs/translate_tweet_to_schema.rb |