From c8fe20924d2cb5e38c157644eabca238d0444ff8 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 19 Nov 2009 11:32:15 -0800 Subject: [PATCH] Fix spec errors --- .../overhead_time_entry_activity_controller_spec.rb | 3 ++- spec/lib/overhead_timesheet_hook_spec.rb | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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