Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 1767931

Browse files
committed
use bundle update in dciy_prepare.sh and fixed rake task
1 parent e6f2635 commit 1767931

File tree

2 files changed

+5
-31
lines changed

2 files changed

+5
-31
lines changed

Rakefile

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,6 @@
11
require "bundler/gem_tasks"
2+
require "rspec/core/rake_task"
23

3-
require 'bundler'
4-
Bundler.require
5-
Bundler::GemHelper.install_tasks
4+
RSpec::Core::RakeTask.new(:spec)
65

7-
8-
require 'rspec/core/rake_task'
9-
require 'opal/rspec/rake_task'
10-
11-
RSpec::Core::RakeTask.new('ruby:rspec') do |s|
12-
s.rspec_opts = "--tag ruby"
13-
end
14-
Opal::RSpec::RakeTask.new('opal:rspec') do |s|
15-
s.append_path 'spec/vendor'
16-
s.index_path = 'spec/index.html.erb'
17-
end
18-
19-
task :test do
20-
Rake::Task['ruby:rspec'].invoke
21-
Rake::Task['opal:rspec'].invoke
22-
end
23-
24-
require 'generators/reactive_ruby/test_app/test_app_generator'
25-
desc "Generates a dummy app for testing"
26-
task :test_app do
27-
ReactiveRuby::TestAppGenerator.start
28-
puts "Setting up test app database..."
29-
system("bundle exec rake db:drop db:create db:migrate > #{File::NULL}")
30-
end
31-
32-
task default: [ :test ]
6+
task :default => :spec

dciy_prepare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
export HYPER_DEV_GEM_SOURCE='https://gems.ruby-hyperloop.org'
33
export RAILS_ENV="test"
4-
bundle install
4+
bundle update
55
cd spec/test_app
6-
bundle install
6+
bundle update
77
cd ../..

0 commit comments

Comments
 (0)