File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
spec/errbit_github_plugin Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 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
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
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
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
You can’t perform that action at this time.
0 commit comments