Sha256: 17e2a7aa5562bae93a374bcf2bfb3521481d8a6e67752ce494cf51bd4393d40b

Contents?: true

Size: 373 Bytes

Versions: 8

Compression:

Stored size: 373 Bytes

Contents

require  'spec_helper'

EXTRA = { :extra => :extra, :another => lambda { } }

class ExtendedAkismetModel
  include Rakismet::Model
  rakismet_attrs EXTRA.dup
end

describe ExtendedAkismetModel do
  it "should include additional attributes" do
    [:extra, :another].each do |field|
      ExtendedAkismetModel.akismet_attrs[field].should eql(EXTRA[field])
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rakismet-1.5.4 spec/models/extended_params_spec.rb
rakismet-1.5.3 spec/models/extended_params_spec.rb
rakismet-1.5.2 spec/models/extended_params_spec.rb
rakismet-1.5.1 spec/models/extended_params_spec.rb
rakismet-1.5.0 spec/models/extended_params_spec.rb
rakismet-1.4.0 spec/models/extended_params_spec.rb
beans-rakismet-1.2.2 spec/models/extended_params_spec.rb
rakismet-1.3.0 spec/models/extended_params_spec.rb