Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
collapse lines
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Aug 19, 2011
1 parent 013218a commit bb9f0c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/do_not_want_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit bb9f0c9

Please sign in to comment.