File: Rakefile

package info (click to toggle)
ruby-doorkeeper-openid-connect 1.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 716 kB
  • sloc: ruby: 3,050; makefile: 7; sh: 4
file content (26 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

ENV['RAILS_ENV'] ||= 'test'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new

task default: :spec
task test: :spec

desc 'Generate and run migrations in the test application'
task :migrate do
  Dir.chdir('spec/dummy') do
    system('bin/rails generate doorkeeper:openid_connect:migration')
    system('bin/rake db:migrate')
  end
end

desc 'Run server in the test application'
task :server do
  Dir.chdir('spec/dummy') do
    system('bin/rails server')
  end
end