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 @@ +

<%= _('AntiSpam settings')%>

+ +<%= form_for(:settings) do |f| %> + + <%= labelled_form_field _('Host'), f.text_field(:host) %> + + <%= labelled_form_field _('API key'), f.text_field(:api_key, :size => 40) %> + + <% button_bar do %> + <%= submit_button(:save, _('Save'), :cancel => {:controller => 'plugins', :action => 'index'}) %> + <% end %> + +<% end %> + diff --git a/plugins/anti_spam/views/anti_spam_plugin_admin/index.rhtml b/plugins/anti_spam/views/anti_spam_plugin_admin/index.rhtml deleted file mode 100644 index 2494f3f..0000000 --- a/plugins/anti_spam/views/anti_spam_plugin_admin/index.rhtml +++ /dev/null @@ -1,14 +0,0 @@ -

<%= _('AntiSpam settings')%>

- -<%= form_for(:settings) do |f| %> - - <%= labelled_form_field _('Host'), f.text_field(:host) %> - - <%= labelled_form_field _('API key'), f.text_field(:api_key, :size => 40) %> - - <% button_bar do %> - <%= submit_button(:save, _('Save'), :cancel => {:controller => 'plugins', :action => 'index'}) %> - <% end %> - -<% end %> - -- libgit2 0.21.2