rszr_spec.rb 380 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe Rszr do
  4. context 'when loading in image' do
  5. it 'orientation is detected correctly' do
  6. sample_path = Rails.root.join 'lib/core_ext/rszr.jpg'
  7. sample_image = Rszr::Image.load sample_path
  8. expect(sample_image.height).to be 25
  9. end
  10. end
  11. end