Skip to content

Commit 6669e08

Browse files
ccutrerBryan Madsen
authored andcommitted
spec: make sure mocking is configured for swagger
fixes CNVS-10649 otherwise rspec 2 in rails 3 will complain about changing the mocking after defining some example groups when running swagger specs with other specs Change-Id: I68a690789300f5a0bb620d6d5171432fa678a84e Reviewed-on: https://gerrit.instructure.com/29070 Tested-by: Jenkins <jenkins@instructure.com> Product-Review: Bryan Madsen <bryan@instructure.com> QA-Review: Bryan Madsen <bryan@instructure.com> Reviewed-by: Jacob Fugal <jacob@instructure.com>
1 parent f02458c commit 6669e08

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec/apis/swagger/swagger_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
File.dirname(__FILE__),
33
'..', '..', '..',
44
'doc', 'api', 'fulldoc', 'html', 'swagger')
5-
$:.unshift(swagger_dir)
5+
$:.unshift(swagger_dir)
6+
7+
require File.expand_path(File.dirname(__FILE__) + '/../../mocha_rspec_adapter')

0 commit comments

Comments
 (0)