Sha256: 298d9f0a1af0a3575cc3dd9c677da72a972005d9f04ab9e19220b3f0afee897b
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
require 'spec_helper' describe YammerApi::Post do before do @fixture = MultiJson.decode(fixture "single_post.json") @post = YammerApi::Post.new(@fixture) end it "should contain correct posting date" do @post.posted_at.should == Time.parse(@fixture["created_at"]).utc end it "should contain correct text" do @post.text.should == @fixture["body"]["plain"] end it "should have attachment" do @post.attachment.should be_an_instance_of(YammerApi::Mash) @post.attachment.type.should == "image" end it "should have sender" do @post.user.should be_an_instance_of(YammerApi::User) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yammer_api-0.1.0 | spec/cases/post_spec.rb |