Skip to content

Commit

Permalink
"updates control group and rsec to never recieve tasks" (#20790)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeardy authored Feb 12, 2024
1 parent 28fce9c commit 40fb211
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/organizations/cda_control_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ def self.singleton
def users_can_view_levers?
true
end

def can_receive_task?(_task)
false
end
end
6 changes: 6 additions & 0 deletions spec/models/organizations/cda_control_group_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@
expect(CDAControlGroup.singleton.users_can_view_levers?).to eq(true)
end
end

describe "can_receive_task?" do
it "should always be false" do
expect(CDAControlGroup.singleton.can_receive_task?("some_task")).to eq(false)
end
end
end

0 comments on commit 40fb211

Please sign in to comment.