Skip to content

Commit

Permalink
Add API controller helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
SebAshton committed Sep 12, 2016
1 parent 900f257 commit 81a926d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
require "spree/testing_support/controller_requests"
require "spree/testing_support/url_helpers"
require "spree/testing_support/authorization_helpers"
require "spree/api/testing_support/helpers"
require "spree/api/testing_support/setup"

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Expand All @@ -54,6 +56,8 @@
config.include FactoryGirl::Syntax::Methods
config.include Spree::TestingSupport::ControllerRequests, type: :controller
config.include Spree::TestingSupport::UrlHelpers
config.include Spree::Api::TestingSupport::Helpers, type: :controller
config.include Spree::Api::TestingSupport::Setup, type: :controller

config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
Expand Down

0 comments on commit 81a926d

Please sign in to comment.