Sha256: 7b9f6e611d2a7c812dd55a4be5eeaaa436ecd170e3234ac765b5e3a956125ef0

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

require  'spec_helper'

class Subclass < AkismetModel
end

describe Subclass do
  it "should inherit parent's rakismet attrs" do
    Subclass.akismet_attrs.should eql AkismetModel.akismet_attrs # key/value equality
  end

  it "should get a new copy of parent's rakismet attrs" do
    Subclass.akismet_attrs.should_not equal AkismetModel.akismet_attrs # object equality
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

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