Mohnish
Hard to tell without looking at the state if your rails app or the
specs. But, it looks like it might be your Model. Try loading the
rails console in test ("rails console test"), and see if you can create
and save the model. Also, I assume "rake db:migrate" ran without issue
as well
On Tue, Mar 15, 2011 at 10:08 AM, Justin Ko wrote:
>
>
> On Tue, Mar 15, 2011 at 8:57 AM, niku -E:) wrote:
>
>> Hi.
>>
>> I'm using ruby1.9.2 and rspec2.5.1
>> I want to use "expect{}.to change().from().to()" like this
>>
>> https://gist.github.com/870897
>>
>> When Int class, it passed.
>> When
On Tue, Mar 15, 2011 at 8:57 AM, niku -E:) wrote:
> Hi.
>
> I'm using ruby1.9.2 and rspec2.5.1
> I want to use "expect{}.to change().from().to()" like this
>
> https://gist.github.com/870897
>
> When Int class, it passed.
> When Ary class, it failed.
>
> Why was Ary test failed and How do I pass
On Mar 15, 2011, at 10:57 AM, niku -E:) wrote:
> Hi.
>
> I'm using ruby1.9.2 and rspec2.5.1
> I want to use "expect{}.to change().from().to()" like this
>
> https://gist.github.com/870897
>
> When Int class, it passed.
> When Ary class, it failed.
>
> Why was Ary test failed and How do I pass
Hi.
I'm using ruby1.9.2 and rspec2.5.1
I want to use "expect{}.to change().from().to()" like this
https://gist.github.com/870897
When Int class, it passed.
When Ary class, it failed.
Why was Ary test failed and How do I pass this test?
regards.
___
r
On Mar 15, 2011, at 5:25 AM, Magnus Erickson wrote:
>
> 2011/3/13 David Chelimsky
> On Mar 9, 2011, at 6:00 AM, Magnus Erickson wrote:
>
> > Hi,
> > Is there a way to detect if an example has failed? Something like a:
> > "example_failed?" method.
> > In my case I need to dump some information,
On Mar 15, 2011, at 4:49 AM, Shamaoke wrote:
> On 14 мар, 03:16, Myron Marston wrote:
>> On Mar 11, 1:17 pm, Justin Ko wrote:
>>
>>
>>
>>> On Thu, Mar 10, 2011 at 2:32 AM, Shamaoke wrote:
Hi.
>>
Why doesn't the following filter work?
>>
~~~
# encoding: utf-8
# ./ex
Thanks for the answer David!
It can be done via a custom formatter but then flexibility will be lost as
well as visibility.
It would really be handy to have this feature. Is there any other way of
doing it? Is it possible to
patch into RSpec in any way? What about after(:each).failure as a new
fea
Thanks for the clarification. I was led astray by the example from the
RSpec Book where the network dependent code was described*. In that
example the default if filter was overriden using the Proc object and
it returned true or false depending on the network condition. Now I
understand that code c