Files
openfoodnetwork/spec/models/spree
Matt-Yorkley 29e0786906 Fix inheritance of Migration object in spec
Fixes:

Spree::Preferences::Preferable persisted preferables requires a valid id but returns default values
       Failure/Error:
               class CreatePrefTest < ActiveRecord::Migration
                 def self.up
                   create_table :pref_tests do |t|
                     t.string :col
                   end
                 end

                 def self.down
                   drop_table :pref_tests
                 end

       StandardError:
         Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:

           class CreatePrefTest < ActiveRecord::Migration[4.2]
       # ./spec/models/spree/preferences/preferable_spec.rb:225:in `block (3 levels) in <top (required)>'
2021-03-17 15:22:22 +00:00
..
2020-12-15 10:30:05 -08:00
2020-08-07 14:03:15 +01:00
2021-02-06 11:15:48 +00:00
2021-02-06 11:15:48 +00:00
2020-08-06 01:41:28 +01:00
2020-09-05 16:38:36 +01:00
2020-10-09 22:11:34 -05:00
2020-09-05 16:43:27 +01:00