Sha256: 276f262623b8a6dcfdcc0104fba49928cf80dd8a3b15cad2cd4488c116a70802

Contents?: true

Size: 857 Bytes

Versions: 7

Compression:

Stored size: 857 Bytes

Contents

require File.expand_path(File.dirname(__FILE__))+'/../../test_helper'


class CassandraLikeStoreTest < Minitest::Test
  include Assertions
  context "CassandraStores::Like" do
    setup do
      @klass = Socialization::CassandraStores::Like
      @base = Socialization::CassandraStores::Base
    end

    context "method aliases" do
      should "be set properly and made public" do
        assert_method_public @klass, :like!
        assert_method_public @klass, :unlike!
        assert_method_public @klass, :likes?
        assert_method_public @klass, :likers_relation
        assert_method_public @klass, :likers
        assert_method_public @klass, :likeables_relation
        assert_method_public @klass, :likeables
        assert_method_public @klass, :remove_likers
        assert_method_public @klass, :remove_likeables
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
socialization-cassandra-0.0.7.pre.alpha test/stores/cassandra/like_store_test.rb
socialization-cassandra-0.0.6.pre.alpha test/stores/cassandra/like_store_test.rb
socialization-cassandra-0.0.5.pre.alpha test/stores/cassandra/like_store_test.rb
socialization-cassandra-0.0.4.pre.alpha test/stores/cassandra/like_store_test.rb
socialization-cassandra-0.0.3.pre.alpha test/stores/cassandra/like_store_test.rb
socialization-cassandra-0.0.2.pre.alpha test/stores/cassandra/like_store_test.rb
socialization-cassandra-0.0.1.pre.alpha test/stores/cassandra/like_store_test.rb