mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
14 lines
357 B
Ruby
14 lines
357 B
Ruby
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
|