spec/handlers/ruby/legacy/base_spec.rb in yard-0.5.6 vs spec/handlers/ruby/legacy/base_spec.rb in yard-0.5.7
- old
+ new
@@ -15,14 +15,14 @@
it "should only handle Handlers inherited from Ruby::Legacy::Base class" do
class IgnoredHandler < Handlers::Base
handles "hello"
end
- class NotIgnoredHandler < Handlers::Ruby::Legacy::Base
+ class NotIgnoredHandlerLegacy < Handlers::Ruby::Legacy::Base
handles "hello"
end
- Handlers::Base.stub!(:subclasses).and_return [IgnoredHandler, NotIgnoredHandler]
- @processor.find_handlers(stmt("hello world")).should == [NotIgnoredHandler]
+ Handlers::Base.stub!(:subclasses).and_return [IgnoredHandler, NotIgnoredHandlerLegacy]
+ @processor.find_handlers(stmt("hello world")).should == [NotIgnoredHandlerLegacy]
end
it "should handle a string input" do
class TestStringHandler < Handlers::Ruby::Legacy::Base
handles "hello"
\ No newline at end of file