diff options
| author | mo khan <mo@mokhan.ca> | 2014-06-07 23:06:47 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-06-07 23:06:47 -0600 |
| commit | 932ed22ec73e2fa7fa11e51b62442ca5d69c503a (patch) | |
| tree | d3df753c083c3c1017ba4ffa2a7f55e3a2fde81b | |
| parent | 94746003eb4f21d4a395d879c0ca7cb4bc83da05 (diff) | |
fix broken specs from bringing back old version of the image.
| -rw-r--r-- | spec/services/infrastructure/image_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/infrastructure/image_spec.rb b/spec/services/infrastructure/image_spec.rb index 3fddc790..0dda6df0 100644 --- a/spec/services/infrastructure/image_spec.rb +++ b/spec/services/infrastructure/image_spec.rb @@ -15,7 +15,7 @@ describe Image do let(:path) { File.join(Rails.root, 'spec/fixtures/images/gps.jpg') } it "gives the SHA256 of the image" do - expect(Image.new(path).sha256).to eql('a1b1b9b8b22d3a4a3523ebb0dc2c57c685938427e12e8a6439fbab104da6b1d8') + expect(Image.new(path).sha256).to eql("530990323da10ba4b8ab6a9809e9d694bd354831fd58afc96e18c708bfad5ef1") end end @@ -69,8 +69,8 @@ describe Image do subject.resize_to_fit(width: 570, height: 630) image = MiniMagick::Image.open(path) - expect(image[:width]).to eql(570) - expect(image[:height]).to eql(395) + expect(image[:width]).to eql(473) + expect(image[:height]).to eql(630) end it "resizes the image to fill" do |
