acts_as_favoritor 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +131 -0
- data/README.md +1 -1
- data/acts_as_favoritor.gemspec +20 -20
- data/lib/acts_as_favoritor.rb +2 -2
- data/lib/acts_as_favoritor/favoritable.rb +3 -3
- data/lib/acts_as_favoritor/favoritor.rb +9 -9
- data/lib/acts_as_favoritor/favoritor_lib.rb +2 -2
- data/lib/acts_as_favoritor/railtie.rb +1 -3
- data/lib/acts_as_favoritor/version.rb +2 -2
- data/lib/generators/{acts_as_follower_generator.rb → acts_as_favoritor_generator.rb} +2 -2
- data/lib/generators/templates/migration.rb.erb +2 -2
- data/lib/generators/templates/model.rb +2 -2
- data/test/acts_as_favoritable_test.rb +283 -0
- data/test/acts_as_favoritor_test.rb +224 -0
- data/test/dummy30/Rakefile +0 -3
- data/test/dummy30/config.ru +0 -2
- data/test/dummy30/config/application.rb +0 -28
- data/test/dummy30/config/environments/development.rb +0 -12
- data/test/dummy30/config/environments/test.rb +0 -15
- data/test/dummy30/config/initializers/secret_token.rb +0 -6
- data/test/dummy30/config/initializers/session_store.rb +0 -7
- data/test/dummy30/config/locales/en.yml +0 -3
- data/test/favorite_test.rb +28 -0
- data/test/schema.rb +6 -5
- metadata +17 -17
- data/test/acts_as_followable_test.rb +0 -283
- data/test/acts_as_follower_test.rb +0 -224
- data/test/dummy30/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy30/config/initializers/inflections.rb +0 -10
- data/test/follow_test.rb +0 -28
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
# (all these examples are active by default):
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
8
|
-
# inflect.irregular 'person', 'people'
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
10
|
-
# end
|
data/test/follow_test.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/test_helper'
|
2
|
-
|
3
|
-
class FollowTest < ActiveSupport::TestCase
|
4
|
-
|
5
|
-
# Replace with real tests
|
6
|
-
def test_assert_true_should_be_true
|
7
|
-
assert true
|
8
|
-
end
|
9
|
-
|
10
|
-
context "configuration with setters" do
|
11
|
-
should "contain custom parents" do
|
12
|
-
ActsAsFollower.custom_parent_classes = [CustomRecord]
|
13
|
-
|
14
|
-
assert_equal [CustomRecord], ActsAsFollower.custom_parent_classes
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
context "#setup" do
|
19
|
-
should "contain custom parents via setup" do
|
20
|
-
ActsAsFollower.setup do |c|
|
21
|
-
c.custom_parent_classes = [CustomRecord]
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_equal [CustomRecord], ActsAsFollower.custom_parent_classes
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|