spec/unit/yaks/null_resource_spec.rb in yaks-0.6.2 vs spec/unit/yaks/null_resource_spec.rb in yaks-0.7.0
- old
+ new
@@ -1,13 +1,13 @@
require 'spec_helper'
RSpec.describe Yaks::NullResource do
subject(:null_resource) { described_class.new }
- its(:attributes) { should eq Hash[] }
+ its(:attributes) { should eq({}) }
its(:links) { should eq [] }
- its(:subresources) { should eq Hash[] }
+ its(:subresources) { should eq [] }
its(:collection?) { should be false }
its(:null_resource?) { should be true }
it { should respond_to :[] }
@@ -47,10 +47,10 @@
Yaks::UnsupportedOperationError, "Operation add_control not supported on Yaks::NullResource"
)
end
it 'should not allow adding subresources' do
- expect { null_resource.add_subresource(nil, nil) }.to raise_error(
+ expect { null_resource.add_subresource(nil) }.to raise_error(
Yaks::UnsupportedOperationError, "Operation add_subresource not supported on Yaks::NullResource"
)
end
end