Sha256: b6e415e7a13bdaa85558bf757543dbf66b42d411b0727159854dc27c9a28e7a5
Contents?: true
Size: 305 Bytes
Versions: 3
Compression:
Stored size: 305 Bytes
Contents
# encoding: utf-8 module SpecHelper def mock_model(*attributes) Class.new { include Equalizer.new(*attributes) attributes.each { |attribute| attr_accessor attribute } def initialize(attrs) attrs.each { |name, value| send("#{name}=", value) } end } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rom-relation-0.1.2 | spec/support/helper.rb |
rom-relation-0.1.1 | spec/support/helper.rb |
rom-relation-0.1.0 | spec/support/helper.rb |