Sha256: b72e93ed1374810242b7b9866fa90fd6199319d71c2d14933f19c30ee55bdb76
Contents?: true
Size: 840 Bytes
Versions: 2
Compression:
Stored size: 840 Bytes
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require 'shortener' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'shoulda/matchers' require 'byebug' require 'faker' require 'capybara/rspec' Rails.backtrace_cleaner.remove_silencers! Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec with.library :rails end end # Run any available migration migration_path = File.expand_path("../dummy/db/migrate/", __FILE__) if ActiveRecord::Migrator.respond_to?(:migrate) ActiveRecord::Migrator.migrate(migration_path) elsif Rails::VERSION::MAJOR < 6 ActiveRecord::MigrationContext.new(migration_path).migrate else ActiveRecord::MigrationContext.new(migration_path, ActiveRecord::Base.connection.schema_migration).migrate end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shortener-0.8.2 | spec/spec_helper.rb |
shortener-0.8.1 | spec/spec_helper.rb |