- get :read, {:id => 5, :format => 'json'}
- assert_response :success
- js = @response.body
- assert_match "\"id\":5", js
- assert_match "\"comment\":\"Valid comment for bug 5\"", js
- assert_match "\"comment\":\"Another valid comment for bug 5\"", js
- assert_no_match /\"comment\":\"Spam for bug 5\"/, js
+ get :read, {:id => 5, :format => 'json'}
+ assert_response :success
+ js = @response.body
+ assert_match "\"id\":5", js
+ assert_match "\"comment\":\"Valid comment for bug 5\"", js
+ assert_match "\"comment\":\"Another valid comment for bug 5\"", js
+ assert_no_match /\"comment\":\"Spam for bug 5\"/, js