Merge pull request #5 from atomaka/feature/clean-up-tests

Setup bundler
This commit is contained in:
Andrew Tomaka 2018-05-07 12:00:24 -04:00 committed by GitHub
commit 8704c03c72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,6 @@
require "bundler/gem_helper" require "bundler/gem_helper"
require "rspec/core/rake_task" require "rspec/core/rake_task"
require "rubocop/rake_task"
namespace "psenv" do namespace "psenv" do
Bundler::GemHelper.install_tasks name: "psenv" Bundler::GemHelper.install_tasks name: "psenv"
@ -20,5 +21,6 @@ task install: ["psenv:install", "psenv-rails:install"]
task release: ["psenv:release", "psenv-rails:release"] task release: ["psenv:release", "psenv-rails:release"]
RSpec::Core::RakeTask.new(:spec) RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new(:rubocop)
task default: :spec task default: %i[rubocop spec]

View file

@ -1,7 +1,10 @@
require "bundler/setup" require "bundler/setup"
require "webmock/rspec" Bundler.setup
require "psenv" require "psenv"
require "webmock/rspec"
WebMock.disable_net_connect!(allow_localhost: true) WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config| RSpec.configure do |config|