I am trying to write a spec were the number of examples i.e. 'it "should ..." do' are determined at runtime. I tried putting the 'it' method in my own method so that I could call it multiple times:
def new_method(test)
it "#{test} should... " do
end
end
However, the 'it' method is not available from the current Spec::Example::ExampleGroup::Subclass instance.