Sha256: 0acb0fe88b16a68b4727e2597320037769af1faa9412ea2fd84a6d4f1b207256

Contents?: true

Size: 388 Bytes

Versions: 60

Compression:

Stored size: 388 Bytes

Contents

require 'spec_helper'

describe SocialStream::ActivityStreams do
  it "should find by type" do
    SocialStream::ActivityStreams.model(:person).should == User
  end

  it "should return Post as default model" do
    SocialStream::ActivityStreams.model!(:_test).should == Post
  end

  it "should find by model" do
    SocialStream::ActivityStreams.type(User).should == :person
  end
end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.2.2 spec/social_stream_activity_streams_spec.rb
social_stream-2.2.1 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.2.1 spec/social_stream_activity_streams_spec.rb
social_stream-2.2.0 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.2.0 spec/social_stream_activity_streams_spec.rb
social_stream-2.1.1 base/spec/social_stream_activity_streams_spec.rb
social_stream-1.1.12 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.11 spec/social_stream_activity_streams_spec.rb
social_stream-2.1.0 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.1.0 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.4 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.4 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.3 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.3 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.11 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.10 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.10 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.9 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.9 base/spec/social_stream_activity_streams_spec.rb