title: Following rspec exception handling, getting 'NoMethodError' for 'expect'
body: <p>Confused as to why this RSpec method isn't working. I was looking at the answer here: <a href="https://stackoverflow.com/questions/1722749/how-to-use-rspecs-should-raise-with-any-kind-of-exception">How to use RSpec&#39;s should_raise with any kind of exception?</a> and have tried all the combinations proposed but for some reason, I'm still getting a NoMethodError.</p>
  
  <p>Here is the exception</p>
  
  <pre><code>Exception encountered: #&lt;NoMethodError: undefined method `expect' for #&lt;Class:0x007fa5bd8e4120&gt;&gt;
  </code></pre>
  
  <p>Here is the method:</p>
  
  <pre><code>describe "admin should not be accesible" do
  expect { User.new(name: "Example Name", email: "email@example.org", password:    "foobar", password_confirmation: "foobar", admin: "true") }.should raise_error(ActiveModel::MassAssignmentSecurity::Error)
  end
  </code></pre>
  
  <p>I got this error earlier so I know that my method is doing what I want it to do:</p>
  
  <pre><code>1) User admin should not be accesible
  Failure/Error: hey = User.new(name: "Hello", email: "hey@hey.org", password: "foobar", password_confirmation: "foobar", admin: "true")
   ActiveModel::MassAssignmentSecurity::Error:
     Can't mass-assign protected attributes: admin
  </code></pre>
  
  <p>I am running:</p>
  
  <p>RSpec 2.1.0 on Rails 3 with guard-spork 0.3.2 and spork 0.9.0</p>