Loading Rakefile +3 −3 Original line number Diff line number Diff line Loading @@ -20,9 +20,9 @@ task :jasmine do test_db = "comments_test" system("echo 'DROP DATABASE IF EXISTS #{test_db};' | mysql") system("echo 'CREATE DATABASE #{test_db};' | mysql") system("mysql #{test_db} < comments/schema.sql") system("mysql #{test_db} < comments/test_data.sql") system("mysql #{test_db} < comments/update_votes.sql") system("mysql #{test_db} < comments/sql/schema.sql") system("mysql #{test_db} < comments/sql/test_data.sql") system("mysql #{test_db} < comments/sql/update_votes.sql") # run jasmine tests against that database system("node comments/node_modules/jasmine-node/lib/jasmine-node/cli.js comments/") Loading comments/examples.sql→comments/sql/examples.sql +0 −0 File moved. View file comments/schema.sql→comments/sql/schema.sql +0 −0 File moved. View file comments/test_data.sql→comments/sql/test_data.sql +0 −0 File moved. View file comments/update_votes.sql→comments/sql/update_votes.sql +0 −0 File moved. View file Loading
Rakefile +3 −3 Original line number Diff line number Diff line Loading @@ -20,9 +20,9 @@ task :jasmine do test_db = "comments_test" system("echo 'DROP DATABASE IF EXISTS #{test_db};' | mysql") system("echo 'CREATE DATABASE #{test_db};' | mysql") system("mysql #{test_db} < comments/schema.sql") system("mysql #{test_db} < comments/test_data.sql") system("mysql #{test_db} < comments/update_votes.sql") system("mysql #{test_db} < comments/sql/schema.sql") system("mysql #{test_db} < comments/sql/test_data.sql") system("mysql #{test_db} < comments/sql/update_votes.sql") # run jasmine tests against that database system("node comments/node_modules/jasmine-node/lib/jasmine-node/cli.js comments/") Loading