Specify controller specs as such

This commit is contained in:
Rob Harrington
2016-01-13 19:00:25 +11:00
parent 14c8683535
commit 3b7700131c
3 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
require 'spec_helper'
module Api
describe EnterprisesController do
describe EnterprisesController, :type => :controller do
include AuthenticationWorkflow
render_views

View File

@@ -2,7 +2,7 @@ require 'spec_helper'
require 'spree/api/testing_support/helpers'
module Api
describe OrderCyclesController do
describe OrderCyclesController, :type => :controller do
include Spree::Api::TestingSupport::Helpers
include AuthenticationWorkflow
render_views

View File

@@ -1,6 +1,6 @@
require 'spec_helper'
describe BaseController do
describe BaseController, :type => :controller do
let(:oc) { mock_model(OrderCycle) }
let(:hub) { mock_model(Enterprise, ready_for_checkout?: true) }
let(:order) { mock_model(Spree::Order, distributor: hub) }