diff --git a/spec/controllers/overhead_time_entry_activity_controller_spec.rb b/spec/controllers/overhead_time_entry_activity_controller_spec.rb index 43629fa..6bdedd6 100644 --- a/spec/controllers/overhead_time_entry_activity_controller_spec.rb +++ b/spec/controllers/overhead_time_entry_activity_controller_spec.rb @@ -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 diff --git a/spec/lib/overhead_timesheet_hook_spec.rb b/spec/lib/overhead_timesheet_hook_spec.rb index a7aea91..07b1b9e 100644 --- a/spec/lib/overhead_timesheet_hook_spec.rb +++ b/spec/lib/overhead_timesheet_hook_spec.rb @@ -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