spec/groupdocs/subscription/limit_spec.rb in groupdocs-1.1.0 vs spec/groupdocs/subscription/limit_spec.rb in groupdocs-1.2.0
- old
+ new
@@ -2,23 +2,15 @@
describe GroupDocs::Subscription::Limit do
it_behaves_like GroupDocs::Api::Entity
- it { should respond_to(:Id) }
- it { should respond_to(:Id=) }
- it { should respond_to(:Min) }
- it { should respond_to(:Min=) }
- it { should respond_to(:Max) }
- it { should respond_to(:Max=) }
- it { should respond_to(:Description) }
- it { should respond_to(:Description=) }
+ it { should have_accessor(:Id) }
+ it { should have_accessor(:Min) }
+ it { should have_accessor(:Max) }
+ it { should have_accessor(:Description) }
- it { should have_alias(:id, :Id) }
- it { should have_alias(:id=, :Id=) }
- it { should have_alias(:min, :Min) }
- it { should have_alias(:min=, :Min=) }
- it { should have_alias(:max, :Max) }
- it { should have_alias(:max=, :Max=) }
- it { should have_alias(:description, :Description) }
- it { should have_alias(:description=, :Description=) }
+ it { should alias_accessor(:id, :Id) }
+ it { should alias_accessor(:min, :Min) }
+ it { should alias_accessor(:max, :Max) }
+ it { should alias_accessor(:description, :Description) }
end