--
You received this message because you are subscribed to a topic in the Google Groups "rspec" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rspec/bwqHFUsldbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/99fcd847-9c68-4684-a396-4157d9412816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 11 Jul 2014, at 17:53, Myron Marston <myron....@gmail.com> wrote:
Thank you Myron for the reply.
So I removed completely Client_delete_all statement as it is managed by DatabaseCleaner truncation feature.
And my features/ClientsControllerPage
--
You received this message because you are subscribed to a topic in the Google Groups "rspec" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rspec/bwqHFUsldbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/99fcd847-9c68-4684-a396-4157d9412816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
WTF, it fails again...
--
You received this message because you are subscribed to a topic in the Google Groups "rspec" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rspec/bwqHFUsldbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/6006d3c5-44bc-4a31-a958-818fea50d752%40googlegroups.com.
This is caused by your use of before(:all) blocks which create data in the database. If you are using the :transaction strategy, which it seems you are, then any data added in before(:all) is created prior to the transaction. This also means it’s left over after the example. I’m guessing you want to use the :all block for “performance reasons”. However, that may not be where your time is being spent. For example, your “Clients Page Has pagination and lists all clients” spec (spec/features/clients_page_spec.rb:24) took 13.25 seconds on my machine. That time was not spent creating the objects, but instead verifying everything on the page.
If you really must use before(:all) then you need to manually clean it up or change your configs. See the following references for more info:
--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/17bb8aae-a3a6-4050-9b11-0f927145eb90%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/17bb8aae-a3a6-4050-9b11-0f927145eb90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "rspec" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rspec/bwqHFUsldbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CAKCESdjCm%2BS4UrYyLHFLJTMWy1R%3DkjQCU%2BCKg9QyvmMv3Zva0w%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "rspec" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rspec/bwqHFUsldbg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/407bfccb-64cf-4706-b510-7066aede38b9%40googlegroups.com.