Sha256: dfd1cfbd88813710e37d75dbdb5e1f3e6692d56a6f51e353879e6b343c476cae

Contents?: true

Size: 342 Bytes

Versions: 11

Compression:

Stored size: 342 Bytes

Contents

require 'spec_helper'

describe Virtus::ValueObject::ClassMethods, '#allowed_writer_methods' do
  subject { object.allowed_writer_methods }

  let(:object) do
    Class.new do
      include Virtus::ValueObject
      attribute :virtus_attribute, String
    end
  end

  it { should include('virtus_attribute=') }
  it { should be_frozen }
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
virtus-0.5.5 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.5.4 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.5.3 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.5.2 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.5.1 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.5.0 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.4.2 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.4.1 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.4.0 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb
virtus-0.3.0 spec/unit/virtus/value_object/class_methods/allowed_writer_methods_spec.rb