Skip to content

Commit

Permalink
Configure knapsack_pro
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturT committed Mar 26, 2017
1 parent 97d8e35 commit 80a9ab9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ namespace :assets do
end
end

require 'knapsack'
require 'knapsack_pro'

Knapsack.load_tasks
KnapsackPro.load_tasks
2 changes: 1 addition & 1 deletion scripts/ci/parallel_specs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -euo pipefail

rake db:reset

rake knapsack:rspec
rake knapsack_pro:queue:rspec
19 changes: 17 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
require 'spec_helper'

require 'knapsack'
require 'knapsack_pro'

Knapsack::Adapters::RSpecAdapter.bind
# uncomment when you use VCR
#require 'vcr'
#VCR.configure do |config|
#config.hook_into :webmock # or :fakeweb
#config.ignore_hosts('localhost', '127.0.0.1', '0.0.0.0', 'api.knapsackpro.com')
#end

# add below when you hook into webmock
#require 'webmock/rspec'
#WebMock.disable_net_connect!(:allow => ['api.knapsackpro.com'])

# add below when you use FakeWeb
#require 'fakeweb'
#FakeWeb.allow_net_connect = %r[^https?://api\.knapsackpro\.com]

KnapsackPro::Adapters::RSpecAdapter.bind

0 comments on commit 80a9ab9

Please sign in to comment.