mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9 lines
325 B
Ruby
9 lines
325 B
Ruby
![]() |
require File.expand_path('../../fixtures/classes', __FILE__)
|
||
|
|
||
|
describe :time_now, shared: true do
|
||
|
it "creates a subclass instance if called on a subclass" do
|
||
|
TimeSpecs::SubTime.send(@method).should be_an_instance_of(TimeSpecs::SubTime)
|
||
|
TimeSpecs::MethodHolder.send(@method).should be_an_instance_of(Time)
|
||
|
end
|
||
|
end
|