Skip to content

Commit

Permalink
Added check for admin user to handle active_tables
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 22, 2010
1 parent fc42fb5 commit fd0f5b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -188,6 +188,9 @@ def matches?(controller,&block)
@controller = controller

@cols = controller.send("#{@table_name}_columns",{})

usr = @controller.send(:myself)
@error_msgs << "User is not an editor - use mock_editor to make handle_active_table work" if !usr.editor?

# Go through each column
@cols.each do |header|
Expand Down

0 comments on commit fd0f5b4

Please sign in to comment.