diff --git a/plugins/anti_spam/Gemfile b/plugins/anti_spam/Gemfile new file mode 100644 index 0000000..69729f8 --- /dev/null +++ b/plugins/anti_spam/Gemfile @@ -0,0 +1 @@ +gem 'rakismet' diff --git a/plugins/anti_spam/test/unit/anti_spam_plugin/comment_wrapper_test.rb b/plugins/anti_spam/test/unit/anti_spam_plugin/comment_wrapper_test.rb index 7b2b6d0..a371f5e 100644 --- a/plugins/anti_spam/test/unit/anti_spam_plugin/comment_wrapper_test.rb +++ b/plugins/anti_spam/test/unit/anti_spam_plugin/comment_wrapper_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class AntiSpamPlugin::CommentWrapperTest < ActiveSupport::TestCase def setup - @comment = Comment.new( + @comment = build(Comment, :title => 'comment title', :body => 'comment body', :name => 'foo', diff --git a/plugins/anti_spam/views/anti_spam_plugin_admin/index.html.erb b/plugins/anti_spam/views/anti_spam_plugin_admin/index.html.erb new file mode 100644 index 0000000..2494f3f --- /dev/null +++ b/plugins/anti_spam/views/anti_spam_plugin_admin/index.html.erb @@ -0,0 +1,14 @@ +