Sha256: 099c1f3d84fc921521c2c90954e35944d798148f519a4b07d8b3acef32f87917

Contents?: true

Size: 867 Bytes

Versions: 11

Compression:

Stored size: 867 Bytes

Contents

require 'bundler'
Bundler.require
Bundler::GemHelper.install_tasks

# Store the BUNDLE_GEMFILE env, since rake or rspec seems to clean it
# while invoking task.
ENV['REAL_BUNDLE_GEMFILE'] = ENV['BUNDLE_GEMFILE']

require 'rspec/core/rake_task'
require 'opal/rspec/rake_task'

RSpec::Core::RakeTask.new('ruby:rspec')

Opal::RSpec::RakeTask.new('opal:rspec') do |s, task|
  s.append_path 'spec/vendor'
  s.index_path = 'spec/index.html.erb'
  task.timeout = 80000 if task
end

task :test do
  Rake::Task['ruby:rspec'].invoke
  Rake::Task['opal:rspec'].invoke
end

require 'generators/reactive_ruby/test_app/test_app_generator'
desc "Generates a dummy app for testing"
task :test_app do
  ReactiveRuby::TestAppGenerator.start
  puts "Setting up test app database..."
  system("bundle exec rake db:drop db:create db:migrate > #{File::NULL}")
end

task default: [ :test ]

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
hyper-react-0.12.7 Rakefile
hyper-react-0.12.6 Rakefile
hyper-react-0.12.5 Rakefile
hyper-react-0.12.4 Rakefile
hyper-react-0.12.3 Rakefile
hyper-react-0.12.2 Rakefile
hyper-react-0.12.1 Rakefile
hyper-react-0.12.0 Rakefile
hyper-react-0.11.0 Rakefile
hyper-react-0.10.0 Rakefile
reactrb-0.9.0 Rakefile