Skip to content

Commit

Permalink
Some typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Amol Udage authored and LeFnord committed Jan 21, 2021
1 parent 7e1113c commit 0e52a8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/generators/templates/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Follow < ActiveRecord::Base
extend ActsAsFollower::FollowerLib
extend ActsAsFollower::FollowScopes

# NOTE: Follows belong to the "followable" interface, and also to followers
# NOTE: Follows belong to the "followable" and "follower" interface
belongs_to :followable, :polymorphic => true
belongs_to :follower, :polymorphic => true

Expand Down
6 changes: 3 additions & 3 deletions test/acts_as_followable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class ActsAsFollowableTest < ActiveSupport::TestCase
assert_equal [], @jon.followers
end

should "not be in the blockked followers count" do
should "not be in the blocked followers count" do
assert_equal 0, @jon.blocked_followers_count
end

Expand All @@ -206,7 +206,7 @@ class ActsAsFollowableTest < ActiveSupport::TestCase

should "return the followers for given type" do
assert_equal [@sam], @jon.followers_by_type('User')
assert_equal [@sam,@jon], @oasis.followers_by_type('User')
assert_equal [@sam, @jon], @oasis.followers_by_type('User')
end

should "not return block followers in the followers for a given type" do
Expand All @@ -233,7 +233,7 @@ class ActsAsFollowableTest < ActiveSupport::TestCase

should "return the followers for given type" do
assert_equal [@sam], @jon.user_followers
assert_equal [@sam,@jon], @oasis.user_followers
assert_equal [@sam, @jon], @oasis.user_followers
end

should "not return block followers in the followers for a given type" do
Expand Down

0 comments on commit 0e52a8c

Please sign in to comment.