diff --git a/spec/models/json_version_spec.rb b/spec/models/json_version_spec.rb index ac6b0cfc..694f8771 100644 --- a/spec/models/json_version_spec.rb +++ b/spec/models/json_version_spec.rb @@ -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