Skip to content

Commit c66b6df

Browse files
committed
Test: refactor autorun handling
1 parent a4b4b04 commit c66b6df

3 files changed

Lines changed: 5 additions & 50 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
/spec/reports/
99
/tmp/
1010
/vendor/
11+
/*.gem

test/check-trello-incidents_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
require 'json'
22
require 'webmock/rspec'
33

4-
require_relative './plugin_stub.rb'
54
require_relative '../bin/check-trello-incidents.rb'
65

76
describe CheckTrelloIncidents do
7+
before :context do
8+
CheckTrelloIncidents.class_variable_set(:@@autorun, false)
9+
end
10+
811
before(:each) do
912
@api = stub_request(
1013
:get,

test/plugin_stub.rb

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)