Skip to content

Commit

Permalink
DEV: lint solved_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Grubba27 committed Apr 24, 2024
1 parent e63af67 commit c1d37ac
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions spec/integration/solved_spec.rb
Expand Up @@ -367,7 +367,7 @@
end
end

context "with discourse-assign installed" , if: defined?(DiscourseAssign) do
context "with discourse-assign installed", if: defined?(DiscourseAssign) do
let(:admin) { Fabricate(:admin) }
before do
SiteSetting.solved_enabled = true
Expand All @@ -380,16 +380,12 @@

it "update all assignments to this status when a post is accepted" do
Jobs.run_immediately!
assigner = Assigner.new(
p1.topic,
admin
)
assigner = Assigner.new(p1.topic, admin)
result = assigner.assign(admin)
expect(result[:success]).to eq(true)

expect(p1.topic.assignment.status).to eq("New")


# post "/solution/accept.json", params: { id: p1.id }
# expect(response.status).to eq(200)

Expand All @@ -402,8 +398,6 @@
# It runs inside of a DistributedMutex.synchronize

expect(p1.topic.assignment.reload.status).to eq("Done")

end

end
end

0 comments on commit c1d37ac

Please sign in to comment.