Sha256: 1015e858274484ad962e39921f6683b242fcfa3c182c3a811a9bf6125726e766

Contents?: true

Size: 457 Bytes

Versions: 10

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe VestalVersions::Versioned do
  it 'respond to the "versioned?" method' do
    ActiveRecord::Base.should respond_to(:versioned?)
    User.should respond_to(:versioned?)
  end

  it 'return true for the "versioned?" method if the model is versioned' do
    User.should be_versioned
  end

  it 'return false for the "versioned?" method if the model is not versioned' do
    ActiveRecord::Base.should_not be_versioned
  end
end

Version data entries

10 entries across 10 versions & 6 rubygems

Version Path
houston-vestal_versions-3.0.0 spec/vestal_versions/versioned_spec.rb
houston-vestal_versions-2.0.1 spec/vestal_versions/versioned_spec.rb
houston-vestal_versions-2.0.0 spec/vestal_versions/versioned_spec.rb
vestal_versions-2.0.0 spec/vestal_versions/versioned_spec.rb
mil_vestal_versions-1.2.6 spec/vestal_versions/versioned_spec.rb
geothird_vestal_versions-1.2.5 spec/vestal_versions/versioned_spec.rb
geothird_vestal_versions-1.2.4 spec/vestal_versions/versioned_spec.rb
geothird_vestal_versions-1.2.3 spec/vestal_versions/versioned_spec.rb
set_vestal_versions-1.2.2 spec/vestal_versions/versioned_spec.rb
razenha-vestal_versions-1.2.2 spec/vestal_versions/versioned_spec.rb