Sha256: 7a97d997aaf9564e19b84874fc665ca31550c5c7f9fb16a1afa699dae2570c07
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
require 'spec_helper_unit' describe Mention::Mention do let(:json){ File.read('spec/fixtures/mention_list_default.json') } let(:mention_params){ JSON.parse(json)['mentions'].first } let(:mention){ Mention::Mention.new(mention_params) } it "has some basic information" do mention.id.should == 3253260762 mention.title.should start_with('SPRUG') mention.description.should start_with('Got even more excited about') mention.url.should == "https://plus.google.com/communities/117927540789820622012" mention.published_at.to_i.should == Time.parse('2013-10-18 21:57:08Z').to_i mention.source_type.should == "web" mention.source_name.should == "google.com" mention.source_url.should == "https://plus.google.com" mention.language_code == "en" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mention-api-0.0.3 | spec/lib/mention/mention_spec.rb |