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.8 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.8 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.7 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.2 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.2 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.1 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.1 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.0 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.0 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.0.beta3 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.0.beta3 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.0.beta2 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.0.beta2 spec/social_stream_activity_streams_spec.rb
social_stream-2.0.0.beta1 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-2.0.0.beta1 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.7 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.6 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.6 base/spec/social_stream_activity_streams_spec.rb
social_stream-base-1.1.5 spec/social_stream_activity_streams_spec.rb
social_stream-1.1.5 base/spec/social_stream_activity_streams_spec.rb