run both tests

This commit is contained in:
Renée Hendricksen 2016-05-26 15:58:56 +02:00 committed by Tyranja
parent e77be8210f
commit 3b490b58cb
2 changed files with 16 additions and 1 deletions

View File

@ -59,7 +59,7 @@ $ popd
### Run tests ### Run tests
```sh-session ```sh-session
$ bundle exec rspec $ bundle exec rake
``` ```
### Run the server ### Run the server
```sh-session ```sh-session

View File

@ -9,6 +9,21 @@ namespace :db do
end end
end end
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :core_specs do
RSpec::Core::RakeTask.new(:core_spec) do |t|
t.pattern = 'core_specs/**{,/*/**}/*_spec.rb'
end
Rake::Task["core_spec"].execute
end
task :default => [:spec, :core_specs]
rescue LoadError
end
desc "generate gemspec" desc "generate gemspec"
task 'travis-api.gemspec' do task 'travis-api.gemspec' do
content = File.read 'travis-api.gemspec' content = File.read 'travis-api.gemspec'