Here is another example that is failing due to same problem..
class Currency < ActiveRecord::Base
end
class Bitcoin < Currency
include ActiveRecord::Singleton
default_scope where(:char_code => 'BTC')
end
spec:
describe Bitcoin do
..
Bitcoin.instance.char_code.should eql('BTC')
..
end
err
thanks. tried both with same result.
btw documentation says to use eql
5.should eql(5)
http://rspec.rubyforge.org/rspec/1.1.9/classes/Spec/Matchers.html#M000429
On Sep 5, 7:08 pm, Nick wrote:
> Try "eq" or "equal".
___
rspec-users mailing list
rspe
On Sep 5, 2011, at 8:10 PM, slavix wrote:
> Having troubles with rspec and should eql.. in a rails 3.1 app
>
> spec has this
> User.first.name.should eql('admin')
>
> get this error
> .rvm/gems/ruby-1.9.2-p290/gems/remarkable-4.0.0.alpha4/lib/remarkable/
> core/macros.rb:15:in `method_missing':
Try "eq" or "equal".
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Having troubles with rspec and should eql.. in a rails 3.1 app
spec has this
User.first.name.should eql('admin')
get this error
.rvm/gems/ruby-1.9.2-p290/gems/remarkable-4.0.0.alpha4/lib/remarkable/
core/macros.rb:15:in `method_missing': undefined method `eql' for
# (NoMethodError)
btw, I am