spec/templates/engine_spec.rb in yard-0.6.3 vs spec/templates/engine_spec.rb in yard-0.6.4
- old
+ new
@@ -76,12 +76,15 @@
def loads_template(*args)
Engine.should_receive(:template).with(*args).and_return(@template)
end
before(:all) do
+ @object = CodeObjects::MethodObject.new(:root, :method)
+ end
+
+ before do
@template = mock(:template)
@template.stub!(:include)
- @object = CodeObjects::MethodObject.new(:root, :method)
end
it "should accept method call with no parameters" do
loads_template(:default, :method, :text)
@template.should_receive(:run).with :__globals => OpenStruct.new,