UPDATE: @GordonDiggs figured it out. Args need the =
sign, so the command should have been $ rake test TESTOPTS="--seed=23939"
When I run this:
$ rake test TESTOPTS="--seed 23939"
I expect it to run with a certain seed, but instead I get
UPDATE: @GordonDiggs figured it out. Args need the =
sign, so the command should have been $ rake test TESTOPTS="--seed=23939"
When I run this:
$ rake test TESTOPTS="--seed 23939"
I expect it to run with a certain seed, but instead I get
function turnNodeConfigIntoBrowserJs() { | |
var fs = require('fs'); | |
var testEnvPath = 'tmp/test-environment.js'; | |
var testEnv = require('../config/environment')('test'); | |
fs.writeFileSync(testEnvPath, 'window.MY_APP_CONFIG = '+JSON.stringify(testEnv)); | |
return testEnvPath; | |
} | |
var testSource = [] | |
.concat([ |
package io.github.searls; | |
import static org.junit.Assert.*; | |
import static org.mockito.Mockito.*; | |
import io.github.searls.wrappers.ListShuffler; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.junit.Test; |
I've decided to experiment with maintaining two Macs for development (a clean, unblemished one to luxuriate over at home, and one to eventually run into the ground during my travels). The last time I did this was 2006. It was a fantastically frustrating experience and I gave up. I expect a similar outcome this time.
Here's the game plan:
/Library/Application Support/CrashPlan/.identity
from the second Mac before ever allowing CrashPlan to launch (otherwise it'll log out the first Mac, start backing up, and confuse the hell out of CrashPlan)#!/bin/bash -e | |
# Usage: | |
# $ git chown <repo name> <old owner> <new owner> | |
# Example: | |
# $ git chown lineman testdouble linemanjs | |
REPO_NAME=$1 | |
OLD_OWNER=$2 | |
NEW_OWNER=$3 |
/* jasmine-matcher-wrapper - 0.0.2 | |
* Wraps Jasmine 1.x matchers for use with Jasmine 2 | |
* https://github.com/testdouble/jasmine-matcher-wrapper | |
*/ | |
(function() { | |
var __slice = [].slice, | |
__hasProp = {}.hasOwnProperty; | |
(function(jasmine) { | |
var comparatorFor; |
jasmine-rails
lineman: see waffle
lineman-angular
class CreateMessages < ActiveRecord::Migration | |
def change | |
create_table :messages do |t| | |
t.references :chat | |
t.text :content | |
t.timestamp :received_at, :default => "now" | |
t.timestamps | |
end | |
end | |
end |
I hereby claim:
To claim this, I am signing this object:
fs = require('fs') | |
module.exports = { | |
drawRoutes: function(app) { | |
app.get('/some-file', function(req, res){ | |
res.json(JSON.parse(fs.readFileSync("config/spec.json").toString())); | |
}); | |
} | |
}; |