Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.398 kb
require 'test_helper'
class POROTest < MiniTest::Unit::TestCase
class MyPORO
include SimpleEnum
attr_accessor :gender_cd
as_enum :gender, [:male, :female]
end
def test_reading_and_writing
poro = POROTest::MyPORO.new
poro.gender_cd = 1
assert_equal :female, poro.gender
poro.male!
assert_equal 0, poro.gender_cd
assert_equal :male, poro.gender
end
end
Jump to Line
Something went wrong with that request. Please try again.