Fix spec errors

This commit is contained in:
Eric Davis
2009-11-19 11:32:15 -08:00
parent 85023dc2d9
commit c8fe20924d
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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