Sha256: 141bed36296bf6f6aa4b354004d27ab1d0e274a12b7e98680baf20bc94a8f362
Contents?: true
Size: 284 Bytes
Versions: 15
Compression:
Stored size: 284 Bytes
Contents
require 'spec_helper' describe Virtus, '#[]' do subject { object[:test] } let(:model) { Class.new { include Virtus attribute :test, String } } let(:object) { model.new } before do object.test = 'foo' end it { is_expected.to eq('foo') } end
Version data entries
15 entries across 13 versions & 5 rubygems