Skip to content

Commit 045df14

Browse files
committed
handles test user
1 parent 5e498fd commit 045df14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/patron.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ def self.inst_roles_for(data)
2121
end
2222
end
2323

24-
# have this return the valid patron or an invalid one.
2524
def self.for(data)
25+
if test_user?(data)
26+
return Skipped.new(data: data, exclude_reasons: ["test_user"])
27+
end
28+
2629
inst_roles = inst_roles_for(data)
2730
exclude_reasons = []
2831
inst_roles.each do |inst_role|

0 commit comments

Comments
 (0)