1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec/models/kitchen/banana_spec.rb
2016-06-27 03:02:33 -04:00

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