Thank you - however that code it already in place..
On Jan 23, 5:29 pm, "Arailsdemo A." wrote:
> Try adding this to your spec_helper.rb
>
> Spork.each_run do
> require 'factory_girl_rails'
> end
>
> adam wrote in post #976883:
>
> > Strangely - I am not getting this error when running seperate
Try adding this to your spec_helper.rb
Spork.each_run do
require 'factory_girl_rails'
end
adam wrote in post #976883:
> Strangely - I am not getting this error when running seperate
> features, only when running just "cucucmber --drb"
--
Posted via http://www.ruby-forum.com/.
--
You receiv
Strangely - I am not getting this error when running seperate
features, only when running just "cucucmber --drb"
On Jan 23, 6:39 am, adam wrote:
> Thank you, but I still get the same error - "uninitialized constant
> FactoryGirl (NameError)"
>
> I have also posted on the FactoryGirl
> list:https
Thank you, but I still get the same error - "uninitialized constant
FactoryGirl (NameError)"
I have also posted on the FactoryGirl list:
https://groups.google.com/group/factory_girl/browse_thread/thread/8de21a97486?hl=en
(see bottom of the thread)
Regards
Adam
On Jan 22, 4:05 pm, Peter Vande
adam wrote in post #976772:
> Now to get it working properly with Cucumber and Factory Girl
> ("uninitialized constant Factory") ...
That could be a confusion between version 1.3 and 2.
Compare this:
https://github.com/thoughtbot/factory_girl#readme
https://github.com/thoughtbot/factory_girl/tre
Thanks guys,
got autotest running now with the hack, working like a charm - now I
remember that sometimes I do actually enjoy coding! :)
Now to get it working properly with Cucumber and Factory Girl
("uninitialized constant Factory") ...
On Jan 21, 7:12 pm, "Arailsdemo A." wrote:
> > But don't
> But don't you always need to do that? Isn't that the task that clears
> out the test DB? Or is that not an issue since you're (hopefully)
> running your specs transactionally?
As far as I can tell, the difference between 'rake spec' and 'rspec
spec' is 'db:test:prepare'. When all tests pass w
Arailsdemo A. wrote in post #976437:
> 1) If your running 'rake spec', then don't, unless you need to do 'rake
> db:test:prepare' also.
But don't you always need to do that? Isn't that the task that clears
out the test DB? Or is that not an issue since you're (hopefully)
running your specs tra
1) If your running 'rake spec', then don't, unless you need to do 'rake
db:test:prepare' also. The 'rake spec' command combines the database
rake with 'rspec spec', that's why it takes a few seconds before the
tests are run. Use 'rspec spec' instead.
2) Use Spork and Autotest. Follow
http://ra
adam wrote in post #976260:
> Ok - please excuse me - it seems that the info on the Spork readme is
> out of date... the Rails 3 branch has been merged. just installed and
> ran a test... wow... 1 minute had become 1 second!!
If you haven't already done so, you might also take a look at the
follo
Ok - please excuse me - it seems that the info on the Spork readme is
out of date... the Rails 3 branch has been merged. just installed and
ran a test... wow... 1 minute had become 1 second!!
:)
On Jan 20, 1:06 pm, adam wrote:
> I am working on my first Rails BDD project with extensive tests sin
11 matches
Mail list logo