Sha256: adff4594b945e2ff6ed4009875c1ac61fe08697d9fa0526d668396f1c0f80ca2
Contents?: true
Size: 593 Bytes
Versions: 43
Compression:
Stored size: 593 Bytes
Contents
require 'spec_helper' describe Post do describe "from_entry!" do before do @remote_subject = Factory(:remote_subject) @entry = double("Proudhon::Entry") SocialStream::ActivityStreams.should_receive(:actor_from_entry!) { @remote_subject } @entry.should_receive(:title) { "testing" } @entry.should_receive(:summary) { "testing" } end it "should create post" do post_count = Post.count post = Post.from_entry! @entry, nil post.author.should == @remote_subject.actor Post.count.should == post_count + 1 end end end
Version data entries
43 entries across 43 versions & 2 rubygems