Sha256: 9af7de4b8f6f5fbe1ded9ddabff9ab69ea80e74bb748d6924ed0d4d83fd31e49

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

#!/bin/bash
# Runs each spec file independently

for spec in $(find spec -name "*_spec.rb*"); do
  echo "Running $spec..."

  until bundle exec rspec "$spec"; do
    echo -n -e "\n$spec failed. Retry? "
    read answer

    if [ "$answer" != "${answer#[Yy]}" ]; then
      echo "Retrying..."
    else
      echo "Aborting!"
      exit
    fi
  done

  echo "Success!"
done

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
geny-2.5.2 bin/rspec-each
geny-2.5.1 bin/rspec-each
geny-2.5.0 bin/rspec-each
geny-2.4.0 bin/rspec-each
geny-2.3.0 bin/rspec-each
geny-2.2.0 bin/rspec-each
geny-2.1.4 bin/rspec-each
geny-2.1.3 bin/rspec-each
geny-2.1.2 bin/rspec-each