specs/text_spec.rb in pdf-wrapper-0.2.1 vs specs/text_spec.rb in pdf-wrapper-0.3.0

- old
+ new

@@ -65,11 +65,11 @@ receiver = PDF::Reader::RegisterReceiver.new reader = PDF::Reader.string(@output.string, receiver) # ensure the text is placed in the right location params = receiver.first_occurance_of(:set_text_matrix_and_text_line_matrix)[:args] - params[4].should eql(@pdf.margin_left.to_f) + params[4].should eql(@pdf.margin_left) end specify "should be able to align text on the left when using the text method" do msg = "Chunky Bacon" @pdf.text msg, :alignment => :left @@ -78,10 +78,10 @@ receiver = PDF::Reader::RegisterReceiver.new reader = PDF::Reader.string(@output.string, receiver) # ensure the text is placed in the right location params = receiver.first_occurance_of(:set_text_matrix_and_text_line_matrix)[:args] - params[4].should eql(@pdf.margin_left.to_f) + params[4].should eql(@pdf.margin_left) end specify "should be able to align text in the centre when using the text method" do msg = "Chunky Bacon" @pdf.text msg, :alignment => :center