Sha256: 096ed9ddf4cfc2fe3976b8c77eed1bfe6556ce57a20fc11196ded5a13f1a8a54

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

require 'rails_helper'

module Kitchen
  describe Banana, :type => :model do
    it { is_expected.to be_versioned }

    describe '#versions' do
      it "returns instances of Kitchen::BananaVersion", :versioning => true do
        banana = described_class.create!
        expect(banana.versions.first).to be_a(Kitchen::BananaVersion)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
paper_trail-4.2.0 spec/models/kitchen/banana_spec.rb
paper_trail-4.1.0 spec/models/kitchen/banana_spec.rb
paper_trail-4.0.2 spec/models/kitchen/banana_spec.rb
paper_trail-4.0.1 spec/models/kitchen/banana_spec.rb
paper_trail-4.0.0 spec/models/kitchen/banana_spec.rb
paper_trail-4.0.0.rc2 spec/models/kitchen/banana_spec.rb