Sha256: 3433e238e262cfe2ac445a1f96a94d284c28d8f2ca5609c097d32211c4d52daf

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

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

class FollowTest < ActiveSupport::TestCase

  # Replace with real tests
  def test_assert_true_should_be_true
    assert true
  end

  context "configuration with setters" do
    should "contain custom parents" do
      ActsAsFollower.custom_parent_classes = [CustomRecord]

      assert_equal [CustomRecord], ActsAsFollower.custom_parent_classes
    end
  end

  context "#setup" do
    should "contain custom parents via setup" do
      ActsAsFollower.setup do |c|
        c.custom_parent_classes = [CustomRecord]
      end

      assert_equal [CustomRecord], ActsAsFollower.custom_parent_classes
    end
  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
acts_as_favoritor-1.0.0 test/follow_test.rb
acts_as_follower1-1.0.9 test/follow_test.rb