Sha256: d7cb5cb8c80ef72826c689fe83cc60855d779ce7c018dfd1320380edcc25c7a7

Contents?: true

Size: 375 Bytes

Versions: 7

Compression:

Stored size: 375 Bytes

Contents

require 'sinatra/activerecord/rake'
require 'rake/testtask'
require './src/app'

namespace :test do
  task :prepare do
    `RACK_ENV=test rake db:create`
    `RACK_ENV=test rake db:migrate`
    `RACK_ENV=test SECRET=secret rake db:seed`
  end
end

task :test do
  Rake::TestTask.new do |t|
    t.pattern = 'test/*_test.rb'
    t.libs << 'test'
    t.verbose = true
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
shopify-sinatra-app-1.2.1 example/Rakefile
sinatra-embedded-shopify-app-0.5.16 example/Rakefile
shopify-sinatra-app-1.2.0 example/Rakefile
shopify-sinatra-app-1.1.1 example/Rakefile
shopify-sinatra-app-1.1.0 example/Rakefile
shopify-sinatra-app-1.0.1 example/Rakefile
shopify-sinatra-app-1.0.0 example/Rakefile