Hello, I have a class that includes a module from a gem and leverages a class method from the module:
class A include ThirdPartyGem::ModuleName method_from_module option1: 'a thing', option2: 384 end My spec test looks like: require 'spec_helper' require 'a' Rspec.describe A do ... end I want to know how i can mock "method_from_module" since it would get executed on the "require" in the spec. There are instance methods that I want to test but for brevity I have left those out of the examples above. I was trying to think about using "class_double" in RSpec.configure, but I still intend on testing that class. Thanks for any ideas. -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/fc12c86b-9b99-4450-9f74-899d1d30d5d2n%40googlegroups.com.