Sha256: 7fca9d66b2bafabc47cd5f520349626df7e47038038f9620994a29769349877f
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Attribute, '#rename' do subject { object.rename(name) } let(:described_class) { Class.new(Attribute) } let(:object) { described_class.new(:name, :required => false) } context 'when the new name is the same' do let(:name) { object.name } it { should equal(object) } end context 'when the new name is different' do let(:name) { :other_name } it { should be_instance_of(described_class) } it { should_not equal(object) } its(:name) { should equal(name) } its(:required?) { should be(false) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/attribute/rename_spec.rb |