Commit 33ae78df66c39a4b9ceb12f41a45a987baf66daf
1 parent
1d8725a2
Exists in
master
and in
1 other branch
Fixed mingle tracker spec - tiny bug due to string vs. symbol conflict
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
spec/controllers/apps_controller_spec.rb
... | ... | @@ -288,11 +288,12 @@ describe AppsController do |
288 | 288 | context tracker_klass do |
289 | 289 | it "should save tracker params" do |
290 | 290 | params = tracker_klass::Fields.inject({}){|hash,f| hash[f[0]] = "test_value"; hash } |
291 | - params['ticket_properties'] = "card_type = defect" if tracker_klass == MingleTracker | |
292 | - params['type'] = tracker_klass.to_s | |
291 | + params[:ticket_properties] = "card_type = defect" if tracker_klass == MingleTracker | |
292 | + params[:type] = tracker_klass.to_s | |
293 | 293 | put :update, :id => @app.id, :app => {:issue_tracker_attributes => params} |
294 | 294 | |
295 | 295 | @app.reload |
296 | + | |
296 | 297 | tracker = @app.issue_tracker |
297 | 298 | tracker.should be_a(tracker_klass) |
298 | 299 | tracker_klass::Fields.each do |field, field_info| |
... | ... | @@ -306,7 +307,7 @@ describe AppsController do |
306 | 307 | it "should show validation notice when sufficient params are not present" do |
307 | 308 | # Leave out one required param |
308 | 309 | params = tracker_klass::Fields[1..-1].inject({}){|hash,f| hash[f[0]] = "test_value"; hash } |
309 | - params['type'] = tracker_klass.to_s | |
310 | + params[:type] = tracker_klass.to_s | |
310 | 311 | put :update, :id => @app.id, :app => {:issue_tracker_attributes => params} |
311 | 312 | |
312 | 313 | @app.reload | ... | ... |