Sha256: 9616ae1451d6c3fc64cf6fed0c465775f52686375b1f8776d5ef9ce347de6582
Contents?: true
Size: 299 Bytes
Versions: 4
Compression:
Stored size: 299 Bytes
Contents
# encoding: utf-8 shared_examples :user do before do class User attr_reader :name, :age, :role def initialize(name, age) @name = name @age = age @role = block_given? ? yield : nil end end end after { Object.send :remove_const, :User } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
immutability-0.0.5 | spec/shared/user.rb |
immutability-0.0.4 | spec/shared/user.rb |
immutability-0.0.3 | spec/shared/user.rb |
immutability-0.0.2 | spec/shared/user.rb |