Sha256: 6564a1466bf49486cf48a7a4218152236ede0aaaa8449167f565f961d5382e38
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class FavoriteTest < 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 ActsAsFavoritor.custom_parent_classes = [CustomRecord] assert_equal [CustomRecord], ActsAsFavoritor.custom_parent_classes end end context '#setup' do should 'contain custom parents via setup' do ActsAsFavoritor.setup do |c| c.custom_parent_classes = [CustomRecord] end assert_equal [CustomRecord], ActsAsFavoritor.custom_parent_classes end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_favoritor-1.0.2 | test/favorite_test.rb |
acts_as_favoritor-1.0.1 | test/favorite_test.rb |