We tried to upgrade our RSpec from 1.3.1 to 2.6 and are having some
problems. It seems that shared example group includes modules
differently in RSpec 2.
Consider the following code:
shared_examples_for “shared” do
it “works” do
describe “describe” do
it “works too” do
When running with RSpec 1.3.1 all specs are passing, but RSpec 2.6
fails with one failure:
- describe works too
undefined local variable or method `testing’ for
It seems that the describe block doesn’t get the methods included from
the module. How to solve that problem?