Sha256: c520ec5b5f8b664f6917ad22d064e547424cf8a7d13ae40eb6c57f0966696eea
Contents?: true
Size: 880 Bytes
Versions: 1
Compression:
Stored size: 880 Bytes
Contents
require 'spec_helper' MAPPED_PARAMS = { :comment_type => :type2, :author => :author2, :content => :content2, :author_email => :author_email2, :author_url => :author_url2, :permalink => :permalink2 } class CustomAkismetModel include Rakismet::Model rakismet_attrs MAPPED_PARAMS.dup end describe CustomAkismetModel do it "should override default mappings" do CustomAkismetModel.akismet_attrs[:comment_type].should eql(:type2) CustomAkismetModel.akismet_attrs[:comment_author].should eql(:author2) CustomAkismetModel.akismet_attrs[:comment_content].should eql(:content2) CustomAkismetModel.akismet_attrs[:comment_author_email].should eql(:author_email2) CustomAkismetModel.akismet_attrs[:comment_author_url].should eql(:author_url2) CustomAkismetModel.akismet_attrs[:permalink].should eql(:permalink2) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rakismet-1.5.4 | spec/models/custom_params_spec.rb |