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
class Camel < ActiveRecord::Base | |
def initialize(attributes = nil, options = {}) | |
super(underscore_keys(attributes), options) | |
end | |
def attributes=(new_attributes, guard_protected_attributes=nil) | |
super(underscore_keys(new_attributes, guard_protected_attributes)) | |
end | |
def serializable_hash(options = nil) |
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
2011-10-25T19:21:51+00:00 heroku[web.1]: Starting process with command `bin/hubot -a campfire -n Doubot` | |
2011-10-25T19:21:51+00:00 app[web.1]: bin/hubot: 3: npm: not found | |
2011-10-25T19:21:51+00:00 app[web.1]: /usr/bin/env: coffee: No such file or directory |
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
window.concatenation = function(s1,s2) { | |
return s1 + ', ' + s2 + " and pandas!"; | |
}; |
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
describe('CallList', function() { | |
var subject; | |
beforeEach(function() { | |
subject = new CallList({items: ['A','B','C']}); | |
}); | |
describe("#moveUp", function() { | |
context("moving up C", function() { | |
beforeEach(function() { | |
subject.moveUp('C'); |
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
describe('CallList', function() { | |
var subject; | |
beforeEach(function() { | |
subject = new CallList({items: ['A','B','C']}); | |
}); | |
describe("#moveUp", function() { | |
context("moving up C", function() { | |
beforeEach(function() { | |
subject.moveUp('C'); |
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
prompt('',JSON.stringify($('.content a').map(function(i,el){ | |
if($(el).text().indexOf(".coffee") !== -1) { | |
return $(el).text(); | |
} | |
}).toArray())); |
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
describe "panda", -> | |
Given -> inject('foo') | |
Given -> inject('bar') | |
Then(-> expect($('.foo')).toExist()) | |
.Then(-> expect($('.bar')).toExist()) |
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
describe('CallList', function() { | |
var subject; | |
beforeEach(function() { | |
subject = new CallList({items: ['A','B','C']}); | |
}); | |
describe("#moveUp", function() { | |
context("moving up C", function() { | |
beforeEach(function() { | |
subject.moveUp('C'); |
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
describe "CallListView", -> | |
beforeEach -> | |
@subject = new CallListView | |
describe "events", -> | |
it "binds to up-arrow clicks", -> | |
expect(@subject.events).toEqual "click .up-arrow": 'moveUp' |
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
describe "CallListView", -> | |
beforeEach -> | |
@model = jasmine.createSpyObj('CallList',['bind','moveUp']) | |
@subject = new CallListView model: @model | |
describe "events", -> | |
it "binds to up-arrow clicks", -> | |
expect(@subject.events).toEqual "click .up-arrow": 'moveUp' | |
describe "#moveUp", -> |