it "should have default mappings" do
[:comment_type, :author, :author_email, :author_url, :content, :permalink].each do |field|
fieldname = field.to_s =~ %r(^comment_) ? field : "comment_#{field}".intern
AkismetModel.akismet_attrs[fieldname].should eql(field)
end
AkismetModel::akismet_attrs[:user_role].should eql(:user_role)
end
Can you confirm whether this is the case, and if so, just send the value in the permalink argument?
I don't know Ruby all that well, but it appears that the
permalink
parameter is actually being sent ascomment_permalink
, based on its inclusion in arrays like the one at https://github.com/joshfrench/rakismet/blob/c19ded8f10704f0924f37b1cd48cadd58ba569fe/spec/models/rakismet_model_spec.rb#L11Can you confirm whether this is the case, and if so, just send the value in the
permalink
argument?