Last active
December 22, 2015 01:59
-
-
Save shwoodard/6400103 to your computer and use it in GitHub Desktop.
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
module "Creating a task on the index page." | |
test "has a new task input and header", -> | |
visit("/").then -> | |
equal "Kanban Guru", find('h1').text(), "Header 1 should read, 'Kanban Guru'" | |
ok find('.new_task_body').is('input[type=text]'), "new task body input should be a text field" |
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
// Karma configuration | |
// Generated on Fri Aug 30 2013 06:31:04 GMT-0700 (PDT) | |
module.exports = function(config) { | |
config.set({ | |
// base path, that will be used to resolve files and exclude | |
basePath: '..', | |
// frameworks to use | |
frameworks: ['qunit'], | |
// list of files / patterns to load in the browser | |
files: [ | |
"vendor/assets/javascripts/jquery.js", | |
"vendor/assets/javascripts/jquery-ui.js", | |
"vendor/assets/javascripts/handlebars.js", | |
"vendor/assets/javascripts/ember.js", | |
"vendor/assets/javascripts/sinon.js", | |
"app/assets/javascripts/app.js.coffee", | |
"app/assets/javascripts/router.js.coffee", | |
"app/assets/javascripts/templates/*.hbs", | |
"app/assets/javascripts/models/*.js.coffee", | |
"app/assets/javascripts/controllers/*.js.coffee", | |
"app/assets/javascripts/routes/*.js.coffee", | |
"app/assets/javascripts/views/*.js.coffee", | |
"spec/javascripts/spec_helper.js.coffee", | |
"spec/javascripts/**/*_test.js.coffee" | |
], | |
// list of files to exclude | |
exclude: [ | |
"*.swp" | |
], | |
// test results reporter to use | |
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' | |
reporters: ['progress'], | |
// web server port | |
port: 9876, | |
// enable / disable colors in the output (reporters and logs) | |
colors: true, | |
// level of logging | |
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | |
logLevel: config.LOG_INFO, | |
// enable / disable watching file and executing tests whenever any file changes | |
autoWatch: true, | |
// Start these browsers, currently available: | |
// - Chrome | |
// - ChromeCanary | |
// - Firefox | |
// - Opera | |
// - Safari (only Mac) | |
// - PhantomJS | |
// - IE (only Windows) | |
browsers: ['PhantomJS'], | |
// If browser does not capture in given timeout [ms], kill it | |
captureTimeout: 60000, | |
// Continuous Integration mode | |
// if true, it capture browsers, run tests and exit | |
singleRun: false, | |
preprocessors: { | |
'**/*.coffee': 'coffee', | |
'**/*.hbs': 'ember' | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment