diff options
| author | Tom Black <[email protected]> | 2018-09-26 19:26:11 -0700 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2018-09-26 19:26:11 -0700 |
| commit | f3736f2c7b9a03b51d2a5102b9e52f138424dde6 (patch) | |
| tree | de4af88e139bfa37e8184b961edb3e41d0938edc | |
| parent | df8d3ec40ba5be54d0fea2d74709e803a588f526 (diff) | |
| download | ruby2d-f3736f2c7b9a03b51d2a5102b9e52f138424dde6.tar.gz ruby2d-f3736f2c7b9a03b51d2a5102b9e52f138424dde6.zip | |
Allow text width to be a range in spec
| -rw-r--r-- | test/text_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/text_spec.rb b/test/text_spec.rb index 3e15435..6e0ba09 100644 --- a/test/text_spec.rb +++ b/test/text_spec.rb @@ -25,8 +25,7 @@ RSpec.describe Ruby2D::Text do describe "#width" do it "is known after creation" do t = Text.new(font: "test/media/bitstream_vera/vera.ttf") - # expect(t.width).to eq(123) - expect(t.width).to eq(116) + expect(t.width).to be_between(110, 120) end it "is known after updating" do |
