summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/status/extended_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 15:21:06 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 15:21:06 +0200
commit55cec2177cd97a5c0939ab34b01aa408de887d1a (patch)
tree3df467c66c13f852e1132faf1eaa8153f3655839 /spec/lib/gitlab/ci/status/extended_spec.rb
parent2cc8f43e54d2b653a4f2e80c57339acb11dcba86 (diff)
downloadgitlab-ce-55cec2177cd97a5c0939ab34b01aa408de887d1a.tar.gz
Refine inheritance model of extended CI/CD statuses
Diffstat (limited to 'spec/lib/gitlab/ci/status/extended_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/status/extended_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/lib/gitlab/ci/status/extended_spec.rb b/spec/lib/gitlab/ci/status/extended_spec.rb
index c2d74ca5cde..6eacb07078b 100644
--- a/spec/lib/gitlab/ci/status/extended_spec.rb
+++ b/spec/lib/gitlab/ci/status/extended_spec.rb
@@ -1,12 +1,8 @@
require 'spec_helper'
describe Gitlab::Ci::Status::Extended do
- subject do
- Class.new.include(described_class)
- end
-
it 'requires subclass to implement matcher' do
- expect { subject.matches?(double, double) }
+ expect { described_class.matches?(double, double) }
.to raise_error(NotImplementedError)
end
end