Skip to content

Commit

Permalink
Updated unit test for yaws bootstrap subcommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan McGreggor committed Mar 21, 2014
1 parent 1a505af commit 2be2487
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,18 @@ testNewYAWSBootstrap () {
cd $yawsbootstrapname && make check &> /dev/null
cd - &> /dev/null
if [ "$TRAVIS" = "true" ]; then
expected="22"
expected="26"
else
expected="28"
expected="32"
fi
assertEquals $expected \
"`find $yawsbootstrapname -type f|egrep -v 'deps|.git'|wc -l|tr -d ' '`"
assertEquals '(defmodule my-yaws-bootstrap-content' \
"`head -1 $yawsbootstrapname/src/my-yaws-bootstrap-content.lfe`"
assertEquals '(defmodule my-yaws-bootstrap-nav' \
"`head -1 $yawsbootstrapname/src/my-yaws-bootstrap-nav.lfe`"
assertEquals '(defmodule my-yaws-bootstrap-routes' \
"`head -1 $yawsbootstrapname/src/my-yaws-bootstrap-routes.lfe`"
}

##########
Expand Down

0 comments on commit 2be2487

Please sign in to comment.