spec/models/rakismet_model_spec.rb in rakismet-1.3.0 vs spec/models/rakismet_model_spec.rb in rakismet-1.4.0

- old
+ new

@@ -6,10 +6,10 @@ @model = AkismetModel.new comment_attrs.each_pair { |k,v| @model.stub!(k).and_return(v) } end it "should have default mappings" do - [:comment_type, :author, :author_email, :author_url, :content, :user_role].each do |field| + [:comment_type, :author, :author_email, :author_url, :content, :user_role, :permalink].each do |field| fieldname = field.to_s =~ %r(^comment_) ? field : "comment_#{field}".intern AkismetModel.akismet_attrs[fieldname].should eql(field) end end