Skip to content

Commit

Permalink
Try to only run photo specs
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Jun 4, 2023
1 parent eed083d commit 36cef18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
db:
- mysql
- postgresql
kind:
- cucumber
- other
env:
DB: ${{ matrix.db }}
RAILS_ENV: test
Expand Down Expand Up @@ -56,8 +53,6 @@ jobs:
- name: Prepare
run: script/ci/prepare.sh
- name: Run tests
run: bin/rake --trace ci:${{ matrix.kind }}
- name: Run Jasmine
run: bin/rake jasmine:ci
timeout-minutes: 2
if: matrix.kind == 'other'
run: |
bin/rake --trace ci:prepare tests:generate_fixtures
bin/rspec spec/models/photo_spec.rb
8 changes: 8 additions & 0 deletions spec/models/photo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,15 @@ def with_carrierwave_processing(&block)
FileUtils.rm_r Dir.glob(File.join(public_path, "uploads/images/*"))
end

it "should contain EXIF data in original file" do
image = MiniMagick::Image.new(File.join(base_path, "..", "fixtures", "exif.jpg"))

expect(image.exif.length).not_to eq(0)
end

it "should preserve EXIF data in according to user preference" do
expect(alice.strip_exif).to eq(false)

image = image_from a_photo_sent_by(alice)

expect(image.exif.length).not_to eq(0)
Expand Down

0 comments on commit 36cef18

Please sign in to comment.