spec/groupdocs/document/rectangle_spec.rb in groupdocs-1.1.0 vs spec/groupdocs/document/rectangle_spec.rb in groupdocs-1.2.0

- old
+ new

@@ -2,25 +2,13 @@ describe GroupDocs::Document::Rectangle do it_behaves_like GroupDocs::Api::Entity - it { should respond_to(:X) } - it { should respond_to(:X=) } - it { should respond_to(:Y) } - it { should respond_to(:Y=) } - it { should respond_to(:Width) } - it { should respond_to(:Width=) } - it { should respond_to(:Height) } - it { should respond_to(:Height=) } + it { should have_accessor(:x) } + it { should have_accessor(:y) } + it { should have_accessor(:width) } + it { should have_accessor(:height) } - it { should have_alias(:x, :X) } - it { should have_alias(:x=, :X=) } - it { should have_alias(:y, :Y) } - it { should have_alias(:y=, :Y=) } - it { should have_alias(:w, :Width) } - it { should have_alias(:w=, :Width=) } - it { should have_alias(:width, :w) } - it { should have_alias(:h, :Height) } - it { should have_alias(:h=, :Height=) } - it { should have_alias(:height, :h) } + it { should alias_accessor(:w, :width) } + it { should alias_accessor(:h, :height) } end