Sha256: fca82793cf038ed62b809acda1e246a7dcecbdf1c1ed3ae44b55402f79d48434
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 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 15:57:08').to_i end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mention-api-0.0.2 | spec/lib/mention/mention_spec.rb |