This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

collapse lines

  • Loading branch information...
garybernhardt committed Aug 19, 2011
1 parent 013218a commit bb9f0c9cc8a79997aa9db04b4a51d9ef242a7055
Showing with 1 addition and 3 deletions.
  1. +1 −3 spec/do_not_want_spec.rb
View
@@ -69,9 +69,7 @@ class Cheese < ActiveRecord::Base
it 'rejects unsafe class methods' do
DoNotWant::RAILS_CLASS_METHODS_THAT_SKIP_VALIDATION.each do |method_name|
- expect do
- Cheese.send method_name
- end.to raise_error DoNotWant::NotSafe
+ expect { Cheese.send method_name }.to raise_error DoNotWant::NotSafe
end
end

0 comments on commit bb9f0c9

Please sign in to comment.