spec/groupdocs/document/field_spec.rb in groupdocs-1.2.11 vs spec/groupdocs/document/field_spec.rb in groupdocs-1.3.0

- old
+ new

@@ -8,10 +8,10 @@ it { should have_accessor(:type) } it { should have_accessor(:rect) } describe '#rect=' do it 'converts passed hash to GroupDocs::Document::Rectangle object' do - subject.rect = { x: 0.90, y: 0.05, width: 0.06745, height: 0.005967 } + subject.rect = { :x => 0.90, :y => 0.05, :width => 0.06745, :height => 0.005967 } subject.rectangle.should be_a(GroupDocs::Document::Rectangle) subject.rectangle.x.should == 0.90 subject.rectangle.y.should == 0.05 subject.rectangle.w.should == 0.06745 subject.rectangle.h.should == 0.005967