-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing for a fixture finder #5
Comments
Hello @drnic, thanks for testing out prosopite! In the README section for tests, the following is mentioned: # spec/spec_helper.rb
config.before do
Prosopite.scan
end
config.after do
Prosopite.finish
end
In your minitest case, i guess that you run |
Ahh, when I saw "And each test can be scanned with:" I thought it was optional. I'm using minitest and the following looks to make the above test stop failing: # test/test_helper.rb
module ProsopiteTesting
def before_setup
super
Prosopite.scan
end
def after_teardown
Prosopite.finish
super
end
end
class MiniTest::Unit::TestCase
include ProsopiteTesting
end Minitest solution based on suggestion in https://stackoverflow.com/questions/16118086/how-to-run-code-before-each-test-case-in-all-tests-in-minitest/16118387 |
I added prosopite, turned on test exceptions, and watched 43 of my tests explode. Cool. Except when I look at the errors, I'm struggling to figure out what is the issue.
One error complains about a rails fixture finder method:
institution_test.rb:33 is:
What is the issue being raised here and what's the fix?
The text was updated successfully, but these errors were encountered: