On Sep 5, 2011, at 11:27 PM, slavix wrote:
> 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 Bitc
On Sep 5, 2011, at 9:34 PM, slavix wrote:
> 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
This is not why you're having trouble, but rspec-1.1.9 is nearly three years
old:
Hello,
Is there any way to test model inheritance in spec?
something like..
it { ChildModel.should < ParentModel }
thanks.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Tue, Sep 6, 2011 at 9:40 PM, slavix wrote:
> Hello,
> Is there any way to test model inheritance in spec?
>
> something like..
> it { ChildModel.should < ParentModel }
>
> thanks.
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http:/
Wouldn't this be an implementation bound spec?
Best,
Sidu.
http://c42.in
On 7 September 2011 11:09, Justin Ko wrote:
>
>
> On Tue, Sep 6, 2011 at 9:40 PM, slavix wrote:
>>
>> Hello,
>> Is there any way to test model inheritance in spec?
>>
>> something like..
>> it { ChildModel.should < Parent