Sha256: 0857d513bfc80a0b46435ec88bd2a439d546c431f1ad3582bf842e473cedaaac

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require "bundler/gem_tasks"
require 'yard'
require './spec/db/db_creator'

# Generates documentation:
YARD::Rake::YardocTask.new

# RSpec executing:
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

namespace :test do
  desc "Create database and table for specs"
  namespace :db do
    task :migrate do
      adapter_name = ENV['ADAPTER'] || 'sqlite'
      db_creator = DBCreator.new(adapter_name)
      db_creator.migrate
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rand-orders-0.0.3 Rakefile