Fix spec errors
This commit is contained in:
@@ -12,7 +12,8 @@ describe OverheadTimeEntryActivityController, "#index as non-admin" do
|
||||
:anonymous? => false,
|
||||
:name => 'Test user',
|
||||
:projects => Project,
|
||||
:allowed_to? => false
|
||||
:allowed_to? => false,
|
||||
:memberships => []
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
require File.dirname(__FILE__) + '/../spec_helper'
|
||||
# For assert_select
|
||||
require 'action_controller'
|
||||
require 'action_controller/assertions/selector_assertions'
|
||||
include ActionController::Assertions::SelectorAssertions
|
||||
|
||||
# Hack to make RSpec play nicely with call_hook's default contexts
|
||||
def stub_view_to_use_controller_instance
|
||||
|
||||
Reference in New Issue
Block a user