Skip to content

Commit

Permalink
added rails console and server test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhardikjoshi committed Jan 12, 2024
1 parent db92ead commit cc846ac
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions e2e_tests/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ rails _7.1.2_ new myapp -O -m ./template.tmp
cd myapp
bundle exec rails generate model User name:string
bundle exec rake neo4j:migrate
# bundle exec rails c
# bundle exec rails s
if echo 'puts "hi"' | bundle exec rails c
then
echo "rails console works correctly"
else
exit 1
fi
bundle exec rails s -d
while [ $((curl localhost:3000/ > /dev/null 2>&1); echo $?) -ne 0 ]; do sleep 1; done
kill `cat tmp/pids/server.pid`

0 comments on commit cc846ac

Please sign in to comment.