This file contains 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
Ian:cvEAK ian$ cat package.json | |
{ | |
"name": "contractvault", | |
"namespace": "contractvault", | |
"version": "0.0.0-16", | |
"main": "server/server.js", | |
"directories": { | |
"doc": "doc", | |
"test": "test" | |
}, |
This file contains 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
info: Welcome to Nodejitsu contractvault | |
info: jitsu v0.13.2, node v0.10.17 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server/server.js | |
info: Checking app availability contractvault | |
info: Creating app contractvault | |
info: Creating snapshot 0.0.0-16 | |
info Uploading: [=============================] 100% | |
error: Error running command deploy |
This file contains 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
this.resource('contract', {path: '/contract'}, function() { | |
this.route('edit', {path: ':contract_id/edit'}); | |
this.route('show', {path: ':contract_id'}); | |
}); |
This file contains 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
Ember.RSVP.configure('onerror', function(e) { | |
console.log(e.message); | |
console.log(e.stack); | |
}); |
This file contains 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
functionThatReturnsPromise.then(function() { | |
console.log('about to do some logic'); | |
this.get('controllers.application.currentUser').reload(); | |
console.log('Why won\'t my code get to this point????'); | |
}); |
This file contains 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 "mocked query of web service" do | |
it "should perform correct action on system data based on mocked response" do | |
RestClient = double | |
file = File.open('RELATIVE_FILE_PATH_HERE', 'r') #Relative to root of Rails app | |
data = file.read | |
file.close | |
response = double | |
response.stub(:code) { 200 } | |
response.stub(:body) { data } |
This file contains 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
App.get('currentPath'); |
This file contains 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
App = Ember,Application.create({ | |
currentPath: '' | |
}); | |
ApplicationController : Ember.Controller.extend({ | |
currentPathDidChange: function() { | |
App.set('currentPath', this.get('currentPath')); | |
}.observes('currentPath') | |
}); |
This file contains 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
test("Check editing of a book updates search results", function() { | |
expect(7); | |
visit("/").then(function() { | |
return click("#searchButton"); //Click the search button | |
}).then(function() { | |
throws( | |
function() { | |
find(".searchResult h2:contains('The Great Modification')") ; |
This file contains 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
test("Check retrieval of books", function() { | |
expect(6); | |
visit("/").then(function() { | |
ok(exists(".navBar"), "The navbar was rendered"); | |
ok(exists("#searchButton"), "SearchButton was found"); | |
}); | |
visit("/").then(function() { | |
return click("#searchButton"); |