test/twin/inheritance_test.rb in disposable-0.4.6 vs test/twin/inheritance_test.rb in disposable-0.4.7
- old
+ new
@@ -18,11 +18,11 @@
include Id
end
it do
twin = Twin.new(song)
- twin.id.must_equal 0
+ expect(twin.id).must_equal 0
end
class TwinComposition < Disposable::Twin
include Composition
@@ -30,13 +30,13 @@
include Id
end
it do
twin = TwinComposition.new(song: song)
- twin.id.must_equal 0
+ expect(twin.id).must_equal 0
twin.id= 3
- twin.id.must_equal 3
+ expect(twin.id).must_equal 3
end
class TwinCompositionDefineMethod < Disposable::Twin
include Composition
@@ -48,11 +48,11 @@
end
end
it do
twin = TwinCompositionDefineMethod.new(song: song)
- twin.id.must_equal 9
+ expect(twin.id).must_equal 9
end
describe ":from" do
let (:song) { Struct.new(:ident).new(1) }
@@ -64,10 +64,10 @@
class InheritingFrom < TwinWithFrom
end
it do
- TwinWithFrom.new(song).id.must_equal 1
- InheritingFrom.new(song).id.must_equal 1
+ expect(TwinWithFrom.new(song).id).must_equal 1
+ expect(InheritingFrom.new(song).id).must_equal 1
end
end
end