Setup bundler

This commit is contained in:
Andrew Tomaka 2018-05-07 11:46:15 -04:00
parent 1d82e1fa48
commit 2f5f6f37c8
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
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|