Skip to content

Commit f939d40

Browse files
likevi54compwron
authored andcommitted
Fix standardrb linting
1 parent b307023 commit f939d40

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

spec/controllers/emancipations_controller_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@
1414
describe "GET #show" do
1515
context "when authenticated and authorized" do
1616
it "returns http success" do
17-
get :show, params: { casa_case_id: casa_case.friendly_id }
17+
get :show, params: {casa_case_id: casa_case.friendly_id}
1818
expect(response).to have_http_status(:success)
1919
end
2020

2121
it "assigns @current_case" do
22-
get :show, params: { casa_case_id: casa_case.friendly_id }
22+
get :show, params: {casa_case_id: casa_case.friendly_id}
2323
expect(assigns(:current_case)).to eq(casa_case)
2424
end
2525

2626
it "assigns @emancipation_form_data with all categories" do
27-
get :show, params: { casa_case_id: casa_case.friendly_id }
27+
get :show, params: {casa_case_id: casa_case.friendly_id}
2828
expect(assigns(:emancipation_form_data)).to match_array(EmancipationCategory.all)
2929
end
3030
end
3131

3232
context "when case does not exist" do
3333
it "raises a record not found error" do
3434
expect {
35-
get :show, params: { casa_case_id: "nonexistent-case" }
35+
get :show, params: {casa_case_id: "nonexistent-case"}
3636
}.to raise_error(ActiveRecord::RecordNotFound)
3737
end
3838
end
@@ -41,15 +41,15 @@
4141
let(:user) { create(:supervisor, casa_org: other_org) }
4242

4343
it "redirects to root with an authorization notice" do
44-
get :show, params: { casa_case_id: casa_case.friendly_id }
44+
get :show, params: {casa_case_id: casa_case.friendly_id}
4545
expect(response).to redirect_to(root_url)
4646
expect(flash[:notice]).to match(/not authorized/)
4747
end
4848
end
4949

5050
context "docx format" do
5151
it "sends a docx file with the correct filename" do
52-
get :show, params: { casa_case_id: casa_case.friendly_id }, format: :docx
52+
get :show, params: {casa_case_id: casa_case.friendly_id}, format: :docx
5353
expect(response.headers["Content-Disposition"]).to include(
5454
"#{casa_case.case_number} Emancipation Checklist.docx"
5555
)

0 commit comments

Comments
 (0)