test/twin/struct/coercion_test.rb in disposable-0.4.6 vs test/twin/struct/coercion_test.rb in disposable-0.4.7
- old
+ new
@@ -19,18 +19,18 @@
it do
twin = Expense.new( ExpenseModel.new({}) )
#- direct access, without unnest
- twin.content.amount.must_be_nil
+ expect(twin.content.amount).must_be_nil
twin.content.amount = "1.8"
- twin.content.amount.must_equal 1.8
+ expect(twin.content.amount).must_equal 1.8
end
it "via unnest" do
twin = Expense.new( ExpenseModel.new({}) )
- twin.amount.must_be_nil
+ expect(twin.amount).must_be_nil
twin.amount = "1.8"
- twin.amount.must_equal 1.8
+ expect(twin.amount).must_equal 1.8
end
end