On Sun, Jan 15, 2012 at 6:10 PM, Alexandre Gomes wrote:
> Ideas?
>
>
> ruby-1.9.2-p290 :002 > require 'rspec'
> => true
> ruby-1.9.2-p290 :003 > RSpec::Version::STRING
> => "2.8.0"
> ruby-1.9.2-p290 :004 > describe 'division by zero' do
> ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error
Ideas?
ruby-1.9.2-p290 :002 > require 'rspec'
=> true
ruby-1.9.2-p290 :003 > RSpec::Version::STRING
=> "2.8.0"
ruby-1.9.2-p290 :004 > describe 'division by zero' do
ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error
ruby-1.9.2-p290 :006?> end
NoMethodError: undefined method `expect' for