Rspecs using webmock fail when run on TeamCity servers. This should probably be fixed on the TeamCity side, but this patch seems reasonable and works. See http://www.coding4streetcred.com/blog/post/Issue-RubyMine-31-Webmock-162-and-“Specconfigure”-curse.aspx for a more detailed explanation of what's going on.
fixed TeamCity incompatibility. See http://www.coding4streetcred.com/…
Thank you for this fix! Great that defined?(Spec.configure) solves the problem.
Thanks for the quick version update! I've verified that it's working in TeamCity now when I include:
gem "webmock", ">= 1.7.10", :group => [:test]
in my Gemfile.