Fix NameError: uninitialized constant JsonVersion

This commit is contained in:
Jared Beck 2015-11-17 23:59:35 -05:00
parent b3e1dbdfaf
commit 59cae397d8
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
if JsonVersion.table_exists?
require 'rails_helper'
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