Skip to content

Commit

Permalink
Merge pull request AgileVentures#52 from dcorking/fix-rspec-nil-warning
Browse files Browse the repository at this point in the history
Disable rspec nil warning
  • Loading branch information
tansaku committed Jun 19, 2014
2 parents 2269240 + 044da14 commit eea7b3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/controllers/volunteer_ops_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@

describe '#org_owner?' do
context 'when current user is nil' do
before { controller.stub current_user: nil }
before :each do
allow_message_expectations_on_nil
controller.stub current_user: nil
end

it 'returns false' do
controller.instance_eval { org_owner? }.should be_false
Expand Down

0 comments on commit eea7b3f

Please sign in to comment.