Sha256: 5ad9f036c630c33703fda41407d88b5837e43dfa286c9a6b55d109bab9a8f3d9

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

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

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

    context "method aliases" do
      should "be set properly and made public" do
        # TODO: Can't figure out how to test method aliases properly. The following doesn't work:
        # assert @klass.method(:follow!) == @base.method(:relation!)
        assert_method_public @klass, :follow!
        assert_method_public @klass, :unfollow!
        assert_method_public @klass, :follows?
        assert_method_public @klass, :followers_relation
        assert_method_public @klass, :followers
        assert_method_public @klass, :followables_relation
        assert_method_public @klass, :followables
        assert_method_public @klass, :remove_followers
        assert_method_public @klass, :remove_followables
      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/follow_store_test.rb
socialization-cassandra-0.0.6.pre.alpha test/stores/cassandra/follow_store_test.rb
socialization-cassandra-0.0.5.pre.alpha test/stores/cassandra/follow_store_test.rb
socialization-cassandra-0.0.4.pre.alpha test/stores/cassandra/follow_store_test.rb
socialization-cassandra-0.0.3.pre.alpha test/stores/cassandra/follow_store_test.rb
socialization-cassandra-0.0.2.pre.alpha test/stores/cassandra/follow_store_test.rb
socialization-cassandra-0.0.1.pre.alpha test/stores/cassandra/follow_store_test.rb