From: DeNigris Sean Date: 2010-01-22T09:59:03+09:00 Subject: Re: Why doesn't this work? > Well, this is a long shot, but I'm guessing the method 'double' which you > use several times in your code, doesn't exists. I think the error message is > pretty clear. To say any more than that, we'd need more information. Thanks for taking a shot, but the method definitely exists - use it elsewhere in the same file. A little more explanation - it is a method from Rspec, which is included earlier with require "spec" The problem is that if I use "class << ApplicationScripting::Preview," the new functionality never gets used, but if I use "module ::ApplicationScripting; class Preview;" I can no longer use "double" inside the class. I tried requiring spec again inside the function as well as fully qualifying it with Spec::Mocks::ExampleMethods. Sean