Sha256: 41633e9699c3749964062c5d37bb295bacaca36e4ce6f0dff684da79a5698981
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 Bytes
Contents
require "rails" require "active_record" require "detour" require "shoulda-matchers" require "generators/templates/migration" require "support/shared_contexts/rake" require "pry" class User < ActiveRecord::Base acts_as_flaggable end class Organization < ActiveRecord::Base acts_as_flaggable end RSpec.configure do |config| config.before :suite do ActiveRecord::Base.establish_connection \ adapter: "sqlite3", database: File.dirname(__FILE__) + "/spec.sqlite3" require File.dirname(__FILE__) + "/support/schema.rb" end config.before :each do SetupDetour.migrate :up ActiveRecord::Schema.migrate :up end config.after :each do SetupDetour.migrate :down ActiveRecord::Schema.migrate :down end config.after :each do Detour::Feature.instance_variable_set "@defined_groups", {} Detour::Feature.instance_variable_set "@default_flaggable_class_name", nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.1 | spec/spec_helper.rb |