fixed unit tests
This commit is contained in:
@@ -3,12 +3,12 @@ module Moderator
|
||||
def user_level_select_tag(name, options = {})
|
||||
choices = [
|
||||
["", ""],
|
||||
["Member", 0],
|
||||
["Privileged", 100],
|
||||
["Contributor", 200],
|
||||
["Janitor", 300],
|
||||
["Moderator", 400],
|
||||
["Admin", 500]
|
||||
["Member", 20],
|
||||
["Privileged", 30],
|
||||
["Contributor", 33],
|
||||
["Janitor", 35],
|
||||
["Moderator", 40],
|
||||
["Admin", 50]
|
||||
]
|
||||
|
||||
select_tag(name, options_for_select(choices, params[name].to_i), options)
|
||||
|
||||
Reference in New Issue
Block a user