Fix NameError: uninitialized constant JsonVersion
This commit is contained in:
parent
b3e1dbdfaf
commit
59cae397d8
|
@ -1,7 +1,9 @@
|
|||
if JsonVersion.table_exists?
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
# The `json_versions` table tests postgres' `json` data type. So, that
|
||||
# table is only created when testing against postgres and ActiveRecord >= 4.
|
||||
if JsonVersion.table_exists?
|
||||
|
||||
describe JsonVersion, :type => :model do
|
||||
it "should include the `VersionConcern` module to get base functionality" do
|
||||
expect(JsonVersion).to include(PaperTrail::VersionConcern)
|
||||
|
|
Loading…
Reference in New Issue