Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 90 lines (67 sloc) 1.544 kb
#!/bin/bash
gems=`rake gems[build,force] | grep File: | cut -f 4 -d ' '`
full_gems=`for f in $gems ; do find . -name $f ; done`
source rvm gemset create hobo-smoke
source rvm gemset use hobo-smoke
source rvm --force gemset empty hobo-smoke
source rvm gemset use hobo-smoke
gem install --no-rdoc --no-ri $full_gems
# invite only
rm -rf smoke
hobo new smoke --setup --invite-only
cd smoke
rails s -p 3003 &
pid=$!
sleep 45
wget http://localhost:3003/
grep "Smoke" index.html
grep "Congratulations" index.html
wget http://localhost:3003/admin/users
grep "No records to display" users
grep 'Users : Smoke - Admin' users
grep "New User" users
cd ..
kill $pid || true
sleep 1
kill -9 $pid || true
echo SUCCESS
# simple setup
rm -rf smoke
hobo new smoke --setup
cd smoke
rails g hobo:resource thing name:string body:text
echo "m" > response.txt
echo "" >> response.txt
rails g hobo:migration < response.txt
rails s -p 3003 &
pid=$!
sleep 45
wget http://localhost:3003/
grep "Things" index.html
grep "Smoke" index.html
grep "Congratulations" index.html
kill $pid || true
sleep 1
kill -9 $pid || true
echo SUCCESS
cd ..
# admin subsite
rm -rf smoke
hobo new smoke --setup --add-admin-subsite
cd smoke
rails s -p 3003 &
pid=$!
sleep 45
wget http://localhost:3003/
grep "Smoke" index.html
grep "Congratulations" index.html
wget http://localhost:3003/admin/users
grep "No records to display" users
grep 'Users : Smoke - Admin' users
grep "New User" users
kill $pid || true
sleep 1
kill -9 $pid || true
echo SUCCESS
cd ..
rm -rf smoke
Jump to Line
Something went wrong with that request. Please try again.