मैं अपने आवेदन को रेल 3 में अपग्रेड करने की प्रक्रिया में हूं। मैंने रेल 3 के साथ रुपेक 2 का उपयोग शुरू किया। मुझे अपने कुछ आरएसपीसी परीक्षणों के लिए लेनदेन संबंधी फिक्स्चर बंद करना होगा । वहाँ Rspec 2 के साथ रेल 3 में परीक्षण प्रति ब्लॉक ऐसा करने के लिए एक रास्ता हैरेल 3 और रुपयेपीईसी 2 अलग-अलग परीक्षणों के लिए लेनदेन संबंधी फिक्स्चर बंद कर देते हैं
Failure/Error: ActiveSupport::TestCase.use_transactional_fixtures = false
undefined method `use_transactional_fixtures=' for ActiveSupport::TestCase:Class
: पहले मैं अपने मॉडल चश्मा
before(:all) do
ActiveSupport::TestCase.use_transactional_fixtures = false
end
after(:all) do
ActiveSupport::TestCase.use_transactional_fixtures = true
clean_engine_database
end
कि अब मुझे त्रुटि देता है में निम्न कोड का इस्तेमाल किया?
संभावित डुप्लिकेट [आरएसपीईसी 2 के साथ एक स्पेक के लिए लेनदेन संबंधी फिक्स्चर बंद करें] (http://stackoverflow.com/questions/3853098/turn-off-transactional-fixtures-for-one-spec-with-rspec-2) – shingara
यह डुप्लिकेट प्रतीत नहीं होता है। वे सिर्फ संबंधित हैं। –