spec/groupdocs/document/field_spec.rb in groupdocs-0.3.11 vs spec/groupdocs/document/field_spec.rb in groupdocs-1.0.0
- old
+ new
@@ -11,13 +11,10 @@
it { should respond_to(:type) }
it { should respond_to(:type=) }
it { should respond_to(:rectangle) }
it { should respond_to(:rectangle=) }
- it 'is compatible with response JSON' do
- subject.should respond_to(:rect=)
- subject.method(:rect=).should == subject.method(:rectangle=)
- end
+ it { should have_alias(:rect=, :rectangle=) }
describe '#rectangle=' do
it 'converts passed hash to GroupDocs::Document::Rectangle object' do
subject.rectangle = { X: 0.90, Y: 0.05, Width: 0.06745, Height: 0.005967 }
subject.rectangle.should be_a(GroupDocs::Document::Rectangle)