[rspec-users] autotest giving error when having shared example in specs

Andrea Reginato lists at ruby-forum.com
Tue Jan 11 07:51:28 EST 2011


I'm sure is not the best solution, but I solved the problem creating an 
Initializer monkey patching the method giving the error. I'm pretty new 
on Ruby and company, as always scratching the surface, and only now 
getting into the deep, but I hope it will help.

# extract config/initializers/rspec_hacks.rb
module RSpec
  module Core
    module SharedExampleGroup
    private
      def ensure_shared_example_group_name_not_taken(name)
      end
    end
  end
end

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list