Skip to content

Commit

Permalink
added travis, fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
saschagehlich committed Nov 6, 2013
1 parent 57bd9ed commit cdca28f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
before_script:
- mysql -e 'create database sequelize_test;'
language: node_js
node_js:
- 0.10
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Product.prototype.setPrice = function (price) {
};

// Validation
Product.prototype.isCheap = function () {
Product.prototype.cheap = function () {
if (this.dataValues.priceAsCents > 500) {
throw new Error("Damn, that shit's expensive!");
}
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var should = require("should")
, models = {};

before(function (done) {
sequelize = new Sequelize("sequenice_test", "root", "");
sequelize = new Sequelize("sequenice_test", "travis", "");
sequenice = new Sequenice(sequelize, {
modelsDirectory: __dirname + "/models",
modelsAttacher: models,
Expand Down

0 comments on commit cdca28f

Please sign in to comment.