How do you download Machinist drawings when using Spork?

How do you download Machinist drawings when using Spork?

Gems:

  • mongoid (2.0.0.rc.6)
  • capybara (0.4.1.1)
  • steak (1.1.0)
  • spork (0.9.0.rc2)
  • rspec (2.4.0)
  • driver (2.0.0.beta2)

I get this error in every acceptance test:

Machinist::NoBlueprintError:
   No master blueprint defined for class School

All tests fail because they cannot find any drawings. I have some of these errors on V2 (I still get a couple of drawings without a wizard), but I also get another error:

Professor Create a new professor
 Failure/Error: click_link("Profesores")
 RangeError:
   0x000000821461e4 is recycled object

I got config.cache_classes = false in the test environment for this.

Both versions of spec_helper:

https://gist.github.com/801814

+5
source share
1 answer

, , . , - , , , - , :

Ruby192, Rails 3.0.4, RSpec 2.5.0, Cucumber 0.10.0 Spork!

, 2.0.0.beta2 spork .

, , - application.rb:

config.generators do |g|
  g.fixture_replacement :machinist      
end

:

features/support/blueprints.rb for cucumber   
spec/support/blueprints.rb for rspec

, :

require 'machinist/active_record'

.

, . , , , . , , config/environment/test.rb:

Machinist.configure do |config|
  config.cache_objects = false
end
+4

All Articles