expected="spec/models/test_file_finder_gem_executable_widget_spec.rb" mkdir -p "spec/models" echo "existing specs" >> $expected actual=$( ruby -Ilib exe/tff app/models/test_file_finder_gem_executable_widget.rb) rm $expected if [[ -n $actual && $expected = $actual ]] then echo "Executable verified" else echo "Could not verify executable" exit 1 fi expected="spec/db/schema_spec.rb" mkdir -p "spec/db" echo "existing schema specs" >> $expected actual=$( ruby -Ilib exe/tff -f spec/fixtures/mapping.yml db/schema.rb) rm $expected if [[ -n $actual && $expected = $actual ]] then echo "Executable using mapping verified" else echo "Could not verify executable using mapping" exit 1 fi