search for: setup_stub

Displaying 3 results from an estimated 3 matches for "setup_stub".

Did you mean: setup_stubs
2007 Apr 11
1
Fwd: [ mocha-Bugs-5892 ] Using a setup method in test_case_class destroys subsequent test cases
...sequent test cases Initial Comment: Using a method called setup within a Test::Unit::TestCase derived class works as expected once you start using mocha and stubba, providing that you run only that test file. If you run several such files, subsequent ones throw exceptions because the Stubba method setup_stubs is no longer getting called (your test case setup method has overwritten it) and thus $stubba is nil. The error you actually see, if you are usings @your_objects.stubs().... is something like: NoMethodError: You have a nil object when you didn''t expect it! The error occurred while...
2006 Sep 18
2
Mocha + Selenium-on-rails loading problem ?
Hello All, I need to stub two class methods before a selenium call. The .rsel is : require ''mocha'' SalesConfigWork.stubs(:load_work_data) SalesConfigWork.stubs(:delete_work_data) setup :fixtures => :sales_config_works open "/" The Selenium test runner result is : undefined method `stubs'' for SalesConfigWork:Class Extracted source (around line *#0*):
2006 Sep 13
2
Problem with RSpec and Mocha/Stubba
I''ve recently upgraded to the latest versions of Mocha and RSpec (0.3.2 and 0.6.3 respectively) and I''m no longer able to use Mocha/ Stubba with RSpec. Its actually only Stubba I''m interested in as I use RSpec''s built-in mocking library. I require stubba in my spec file but whenever I try and run my spec it fails with the error: Unintialized constant