Sha256: 9cf2f5459725c02af0a079f29b53c3400b5e265b1ed14b988904c95c42fcd6a1

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe ActivityAction do
  context "a following contact" do
    before do
      @tie = Factory(:friend)
    end

    it "should create follow action" do
      action = @tie.sender.action_to(@tie.receiver)

      action.should be_present
      action.should be_follow
    end

    it "should remove follow action" do
      action = @tie.sender.action_to(@tie.receiver)

      action.should be_present

      @tie.destroy

      action.reload.should_not be_follow
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-0.24.1 base/spec/models/activity_action_spec.rb
social_stream-base-0.18.1 spec/models/activity_action_spec.rb
social_stream-0.24.0 base/spec/models/activity_action_spec.rb
social_stream-base-0.18.0 spec/models/activity_action_spec.rb