canvas-lms/gems/paginated_collection/test.sh

19 lines
350 B
Bash
Executable File

#!/bin/bash
result=0
echo "################ paginated_collection ################"
echo "################ Running tests against Rails 3 ################"
bundle check || bundle install
bundle exec rspec spec
let result=$result+$?
mv Gemfile.lock.rails2 Gemfile.lock
if [ $result -eq 0 ]; then
echo "SUCCESS"
else
echo "FAILURE"
fi
exit $result