Permalink
Browse files

Cleanup condition specs on base.

  • Loading branch information...
1 parent b86cfba commit 282809c7b19c1af543cfa107591be580acb79127 @bobbytables committed Dec 14, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 spec/lib/base_spec.rb
View
@@ -96,20 +96,15 @@ def value(object, view)
end
it 'exclused the id column when an admin' do
- def subject.admin?
- false
- end
-
+ subject.stub admin?: false
subject.column_names.should_not include 'Id'
end
end
context 'unless' do
subject { DummyTableUnlessAdmin.new([dummy_model], view_context) }
before(:each) do
- def subject.admin?
- false
- end
+ subject.stub admin?: false
end
it 'includes the id when not an admin' do

0 comments on commit 282809c

Please sign in to comment.