Skip to content

Commit 1f65f28

Browse files
committed
Cleanup tests
1 parent 7feb45d commit 1f65f28

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spec/errbit_github_plugin/issue_tracker_spec.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,18 @@
8181

8282
describe "#errors" do
8383
subject { tracker.errors }
84+
8485
context "without username" do
8586
let(:options) { {username: "", password: "bar", github_repo: "repo"} }
87+
8688
it { is_expected.not_to be_empty }
8789
end
90+
8891
context "without password" do
8992
let(:options) do
9093
{username: "", password: "bar", github_repo: "repo"}
9194
end
95+
9296
it { is_expected.not_to be_empty }
9397
end
9498

@@ -104,14 +108,16 @@
104108
let(:options) do
105109
{username: "foo", password: "bar", github_repo: "repo"}
106110
end
111+
107112
it { is_expected.to be_empty }
108113
end
109114
end
110115

111116
describe "#repo" do
112117
let(:options) { {github_repo: "baz"} }
118+
113119
it "returns github repo" do
114-
expect(tracker.repo).to eq "baz"
120+
expect(tracker.repo).to eq("baz")
115121
end
116122
end
117123

@@ -147,7 +153,7 @@
147153
login: user["github_login"], access_token: user["github_oauth_token"]
148154
).and_return(fake_github_client)
149155

150-
expect(subject).to eq fake_issue.html_url
156+
expect(subject).to eq(fake_issue.html_url)
151157
end
152158
end
153159

@@ -159,7 +165,7 @@
159165
login: options["username"], password: options["password"]
160166
).and_return(fake_github_client)
161167

162-
expect(subject).to eq fake_issue.html_url
168+
expect(subject).to eq(fake_issue.html_url)
163169
end
164170
end
165171

0 commit comments

Comments
 (0)