Skip to content

Commit f2318df

Browse files
committed
Update tests
1 parent 04172b5 commit f2318df

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

spec/errbit_plugin/none_issue_tracker_spec.rb

+13-9
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@
33
require "spec_helper"
44

55
RSpec.describe ErrbitPlugin::NoneIssueTracker do
6-
subject { described_class.new({}) }
6+
let(:options) { {} }
77

8-
it { expect(described_class.label).to eq("none") }
8+
subject { described_class.new(options) }
99

10-
it { expect(described_class.note).to start_with("When no issue tracker") }
11-
12-
it { expect(described_class.fields).to eq({}) }
13-
14-
it { expect(described_class.icons).not_to be_empty }
15-
16-
# TODO: .read_static_file
10+
it { expect(subject).to be_an(ErrbitPlugin::IssueTracker) }
1711

1812
it { expect(subject.configured?).to eq(false) }
1913

@@ -24,4 +18,14 @@
2418
it { expect(subject.create_issue).to eq(false) }
2519

2620
it { expect(subject.close_issue).to eq(false) }
21+
22+
it { expect(described_class.label).to eq("none") }
23+
24+
it { expect(described_class.note).to start_with("When no issue tracker") }
25+
26+
it { expect(described_class.fields).to eq({}) }
27+
28+
it { expect(described_class.icons).not_to be_empty }
29+
30+
# TODO: .read_static_file
2731
end

0 commit comments

Comments
 (0)