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-base-1.1.4 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.4 base/spec/social_stream_activity_streams_spec.rb
social_stream-1.1.3 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.3 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.2 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.2 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.1 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.1 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.0 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.0 spec/social_stream_activity_streams_spec.rb
social_stream-1.0.1 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.0.0 spec/social_stream_activity_streams_spec.rb
social_stream-0.30.2 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-0.24.2 spec/social_stream_activity_streams_spec.rb
social_stream-0.30.1 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-0.24.1 spec/social_stream_activity_streams_spec.rb
social_stream-0.30.0 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-0.24.0 spec/social_stream_activity_streams_spec.rb
social_stream-0.29.0 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-0.23.0 spec/social_stream_activity_streams_spec.rb