spec/unit/yaks/null_resource_spec.rb in yaks-0.7.7 vs spec/unit/yaks/null_resource_spec.rb in yaks-0.8.0.alpha

- old
+ new

@@ -1,7 +1,5 @@ -require 'spec_helper' - RSpec.describe Yaks::NullResource do subject(:null_resource) { described_class.new } its(:attributes) { should eql({}) } its(:links) { should eql [] } @@ -31,11 +29,11 @@ subject(:null_resource) { described_class.new( collection: true ) } its(:collection?) { should be true } end it 'should not allow updating attributes' do - expect { null_resource.update_attributes({}) }.to raise_error( - Yaks::UnsupportedOperationError, "Operation update_attributes not supported on Yaks::NullResource" + expect { null_resource.merge_attributes({}) }.to raise_error( + Yaks::UnsupportedOperationError, "Operation merge_attributes not supported on Yaks::NullResource" ) end it 'should not allow adding links' do expect { null_resource.add_link(nil) }.to raise_error(