Sha256: eee5cb6904a420b5c757ee2a6c996d30ad24301a4909a5397904612ef81ca644
Contents?: true
Size: 923 Bytes
Versions: 2
Compression:
Stored size: 923 Bytes
Contents
require 'spec_helper' describe GroupDocs::Document::Field do it_behaves_like GroupDocs::Api::Entity it { should respond_to(:page) } it { should respond_to(:page=) } it { should respond_to(:name) } it { should respond_to(:name=) } it { should respond_to(:type) } it { should respond_to(:type=) } it { should respond_to(:rectangle) } it { should respond_to(:rectangle=) } 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) subject.rectangle.x.should == 0.90 subject.rectangle.y.should == 0.05 subject.rectangle.w.should == 0.06745 subject.rectangle.h.should == 0.005967 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
groupdocs-1.1.0 | spec/groupdocs/document/field_spec.rb |
groupdocs-1.0.0 | spec/groupdocs/document/field_spec.rb |