Sha256: 5bc4059dfc016e14f58f563fff366743b02e9a5ec45ea7c30b07c049e7a89c95
Contents?: true
Size: 706 Bytes
Versions: 43
Compression:
Stored size: 706 Bytes
Contents
require 'spec_helper' describe SocialStream::Ostatus::ActivityStreams do describe "from_pshb_callback" do before do @entry = double("Proudhon::Entry") @remote_subject = double("RemoteSubject") Proudhon::Atom.should_receive(:parse) { [ @entry ] } end describe "with post note" do before do @entry.should_receive(:verb) { :post } @entry.should_receive(:objtype) { :note } @post = double "post" @post.should_receive :post_activity Post.should_receive(:from_entry!).with(@entry) { @post } end it "should call stubs" do SocialStream::ActivityStreams.from_pshb_callback "test" end end end end
Version data entries
43 entries across 43 versions & 2 rubygems