can use default rake command to run test suite

This commit is contained in:
Ryan Buckley 2015-12-15 22:26:23 -08:00
parent 0f4a433738
commit e821db0400
4 changed files with 14 additions and 8 deletions

View File

@ -5,5 +5,3 @@ rvm:
- 2.2.2 - 2.2.2
- 2.2.3 - 2.2.3
before_install: gem install bundler -v 1.10.5 before_install: gem install bundler -v 1.10.5
script:
- bin/test

View File

@ -93,7 +93,6 @@ and would love to see these two consolidated at some point.
## Contributing ## Contributing
1. Fork it ( https://github.com/ridiculous/grape-middleware-logger/fork ) 1. Fork it ( https://github.com/ridiculous/grape-middleware-logger/fork )
1. Run the test suite with `bin/test`
2. Create your feature branch (`git checkout -b my-new-feature`) 2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`) 3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`) 4. Push to the branch (`git push origin my-new-feature`)

View File

@ -1,3 +1,15 @@
require 'rspec/core/rake_task' require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec RSpec::Core::RakeTask.new(:spec) do |config|
config.pattern = 'spec/lib/**/*_spec.rb'
end
RSpec::Core::RakeTask.new(:integration) do |config|
config.pattern = 'spec/integration/**/*_spec.rb'
end
RSpec::Core::RakeTask.new(:integration_rails) do |config|
config.pattern = 'spec/integration_rails/**/*_spec.rb'
end
task default: [:spec, :integration, :integration_rails]

View File

@ -1,3 +0,0 @@
#!/bin/bash
set -ev
bundle exec rspec spec/lib && bundle exec rspec spec/integration && bundle exec rspec spec/integration_rails