Sha256: b033e085a17b35a9bacbf5a8bcc2d5591c287b77b83fe87b6fd55b19f34d5e32

Contents?: true

Size: 328 Bytes

Versions: 8

Compression:

Stored size: 328 Bytes

Contents

ENV["ACTIVE_RECORD_ENV"] = "test"

require_relative '../config/environment'

RSpec.configure do |config|

  config.before do
    run_rake_task('db:migrate')
  end
end

def run_rake_task(task)
  RAKE_APP[task].invoke
  if task == 'db:migrate'
    RAKE_APP[task].reenable
  end
end

def __
  raise "Replace __ with test code."
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
learn-generate-1.0.16 lib/templates/activerecord/spec/spec_helper.rb
learn-generate-1.0.15 lib/templates/activerecord/spec/spec_helper.rb
learn-generate-1.0.14 lib/templates/activerecord/spec/spec_helper.rb
learn-generate-1.0.13 lib/templates/activerecord/spec/spec_helper.rb
learn-generate-1.0.12 lib/templates/activerecord/spec/spec_helper.rb
learn-generate-1.0.11 lib/templates/activerecord/spec/spec_helper.rb
learn-generate-1.0.1 lib/templates/activerecord/spec/spec_helper.rb
learn-generate-1.0.0 lib/templates/activerecord/spec/spec_helper.rb