spec/unit/axiom/attribute/name_spec.rb in axiom-0.1.0 vs spec/unit/axiom/attribute/name_spec.rb in axiom-0.1.1
- old
+ new
@@ -6,13 +6,17 @@
subject { object.name }
let(:described_class) { Class.new(Attribute) }
let(:object) { described_class.new(name) }
+ before do
+ described_class.stub(type: Types::Object)
+ end
+
context 'when name is a Symbol' do
let(:name) { :name }
- it { should equal(name) }
+ it { should be(name) }
end
context 'when name is a String' do
let(:name) { 'name' }