aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/with_commit.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-10-30 17:45:08 +0100
committerTeddy Wing2017-10-30 17:48:58 +0100
commit1299a941e45be30d75709db096a7bc233b64eb95 (patch)
tree45d7e0a02a0fd7c6034c9987089d27c2239990f9 /spec/support/with_commit.rb
parentf7d48398f5cb2ad714691bd630619b02c8958ac5 (diff)
downloadchouette-core-1299a941e45be30d75709db096a7bc233b64eb95.tar.bz2
ComplianceControlSetCopyWorker spec: Always stub API call
In the first test, we weren't stubbing the Java API call, so it would get executed for real. Put the HTTP stub in a `before(:each)` call so that it gets stubbed for every test here. Additionally, reorganise the tests a bit to clean them up. Move the HTTP stub to a `let` to allow it to be called in a couple different places. Since the HTTP stub depends on the `check_set` double, move that to a `let` too. And have the `ComplianceControlSetCopier` mock always return `check_set`, now that the app code depends on that return value. Refs #4782
Diffstat (limited to 'spec/support/with_commit.rb')
0 files changed, 0 insertions, 0 deletions