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
define( function( require ) { | |
var EntryListingView = require( 'views/EntryListingView' ) | |
, $ = require( 'jquery' ) | |
describe('EntryListingView', function() { | |
var entryListingView | |
, id = 'entry' | |
, entry |
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
#Brittle Example | |
Feature: Automatically Update the Chat View | |
Users should not have to refresh their browser to see the latest messages. | |
Scenario: I send a message | |
Given I am on the chatsite | |
#Lower-level. Describes exact actions a user will execute in his/her browser. | |
When I fill out the message body with "Hi everyone" | |
And I click the "Send" button | |
Then I should see "<example_username>Hi everyone" in the ChatView |
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
ChatController = module.isolate(__dirname + '/../../lib/controllers/chat_controller' ) | |
validator = ChatController.dependencies.find( /validator\S+index\.js/ ) | |
describe 'ChatController', -> | |
sockets = | |
foo: {} | |
baz: 'foo' | |
bar: 'baz' |
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
set list | |
set listchars=trail:~ " Tilda as trailing whitespace character |
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
<!-- blah blah, include jasmine / jquery, require.js, sinon, etc --> | |
<script type='text/javascript'> | |
require( [ 'test1', 'test2', 'test3' ], function() { jasmineEnv.execute() } ); | |
</script> |
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
set encoding=utf-8 | |
set fillchars+=stl:\ ,stlnc:\ | |
set nocp | |
" Vundle packages | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() |
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
// requirejs global - hm.... | |
define( function( require ) { | |
var support = require( 'support' ) | |
// chai js loaded with sinon-chai and chai-jquery | |
, expect = support.expect | |
// sinon.js stub function. I also have spy and mock functions available | |
// on the support object | |
, stub = support.stub | |
, REPL = require( 'models/repl' ) |
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
public class Main { | |
public static void main( String[] args ) { | |
System.out.println( "hello world" ); | |
} | |
} |
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
define( function( require ) { | |
var Backbone = require( 'backbone' ) | |
, _ = require( 'underscore' ) | |
, $ = require( 'jquery' ) | |
function createListItem( content, domClass) { | |
return $( '<li class="' + domClass + '">' + content + '</li>' ) | |
} |
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
define( function( require ) { | |
var framework = require( 'framework' ) | |
, prototype | |
prototype = { | |
// self is always passed as the last argument to make functions re-usable | |
// and remove confusing `this` semantics | |
constructor: function( options, self ) { | |
self.model = options.model |