run both tests
This commit is contained in:
parent
e77be8210f
commit
3b490b58cb
|
@ -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
|
||||||
|
|
15
Rakefile
15
Rakefile
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user