Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Mar 16, 2024
1 parent c65cb6e commit 84672d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/requests/problems_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# problem PATCH /problems/:id(.:format) problems#update

RSpec.describe "Problems" do
let(:admin) { create :user, admin: true}
let(:admin) { create(:user, admin: true) }

context "when signed out" do
it "needs testing when multiuser is enabled"
Expand Down Expand Up @@ -88,10 +88,10 @@
end

describe "PATCH /problems/:id" do
let(:problem) { create :problem }
let(:problem) { create(:problem) }

it "updates the problem and returns to list" do
patch "/problems/#{problem.id}", params: { problem: { ignored: true } }
patch "/problems/#{problem.id}", params: {problem: {ignored: true}}
expect(response).to redirect_to("/problems")
end
end
Expand Down
6 changes: 3 additions & 3 deletions spec/requests/uploads_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# POST /uploads(.:format) uploads#create

RSpec.describe "Uploads" do
let(:admin) { create :user, admin: true}
let(:library) { create :library }
let(:admin) { create(:user, admin: true) }
let(:library) { create(:library) }

context "when signed out" do
it "needs testing when multiuser is enabled"
Expand All @@ -23,7 +23,7 @@

describe "POST /uploads" do # rubocop:todo RSpec/RepeatedExampleGroupBody
it "redirect back to index after upload" do
post "/uploads", params: { post: { library_pick: library.id, scan_after_upload: "1" }, upload: { datafiles: []} }
post "/uploads", params: {post: {library_pick: library.id, scan_after_upload: "1"}, upload: {datafiles: []}}
expect(response).to redirect_to("/libraries")
end
end
Expand Down

0 comments on commit 84672d4

Please sign in to comment.