This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe Assignment do | |
| describe "#percentage" do | |
| specify do | |
| assignment = Assignment.new(score: 5, total: 10) | |
| expect(assignment.percentage).to eq(50) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var PORT = 3000; | |
| var INDEX = './index.html'; | |
| http.createServer(function (request, response) { | |
| console.log('request starting...'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var flatiron = require('flatiron'), | |
| path = require('path'), | |
| plates = require('plates'), | |
| app = flatiron.app; | |
| app.config.file({ file: path.join(__dirname, 'config', 'config.json') }); | |
| app.use(flatiron.plugins.http); | |
| app.use(require("./plugins/load")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var UserSchema = new Schema({ | |
| email : String, | |
| hashed_password : String, | |
| first_name : String, | |
| last_name : String, | |
| salt : String, | |
| auth_method : String, | |
| signupDate : { type: Date, default: Date.now } | |
| }); |
NewerOlder