On Nov 29, 2011, at 2:32 PM, Patrick J. Collins wrote:
> In the app I am working on, there are a lot of observers for various models
> which call Event.create! to log stuff... So within a particular example,
> various records might be created in order to test behavior-- and this would
> result in
In the app I am working on, there are a lot of observers for various models
which call Event.create! to log stuff... So within a particular example,
various records might be created in order to test behavior-- and this would
result in several events being created.
So say, I have a spec that does:
In case it helps someone else: I couldn't find if the method was redefined
by another class, but applying this patch solves the issue:
https://github.com/rspec/rspec-core/commit/41c20dfc4e8bc99b6c7bba1e074883614d2aa656
(using inject instead of reduce).
I'm on ruby 1.8.7 (2010-08-16 patchlevel 3
Hi everyone,
For the most part I've never had any issues running tests in a
combination of rake spec and rspec spec.
I ran into a weird issue today, when using CanCan and view tests.
All the tests were passing under rspec spec, but rake spec failed
them.
I had a line like so:
- if can? :activat
On 8 Nov 2011, at 06:52, Romain Tribes wrote:
> I'm writing a Risk-like webgame
> (https://github.com/Sephi-Chan/Conquest-on-Rails) and I want to add tests,
> but it's painful since objects have a lot of dependencies each other.
Hi Romain
I was just catching up on some old RSpec emails and fo
On Nov 29, 2011, at 4:24 AM, David Chelimsky wrote:
>
> On Nov 28, 2011, at 10:07 PM, Alex Whiteland wrote:
>
>>> 1. actually log in (i.e. create a user, go to the login screen and log
>>> in). You can wrap this in a single step definition like "Given I am
>>> logged in as 'admin'", but you stil
On Nov 28, 2011, at 10:07 PM, Alex Whiteland wrote:
>> 1. actually log in (i.e. create a user, go to the login screen and log
>> in). You can wrap this in a single step definition like "Given I am
>> logged in as 'admin'", but you still have to go through the app within
>> the step definition.
>