Sha256: 03ae6ad30f6be6c95a318d8ec748a1a0754b8946b4dfba2ad33db76f196c5725
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
require 'test_helper' require 'becoming' User = Struct.new(:first_name, :last_name) do include Becoming end module FullNamed def full_name "#{first_name} #{last_name}" end end class BecomingTest < MiniTest::Unit::TestCase def test_becomings user = User.new("Steve", "Klabnik") user.becoming(FullNamed) assert_equal "Steve Klabnik", user.full_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
becoming-1.0.0 | test/becoming_test.rb |