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
| TypeError: 'undefined' is not an object (evaluating 'router.reset') | |
| at handleReset (/Users/samwoodard/Development/kanban_guru/vendor/assets/javascripts/ember.js:30148) | |
| at /Users/samwoodard/Development/kanban_guru/vendor/assets/javascripts/ember.js:4864 | |
| at /Users/samwoodard/Development/kanban_guru/vendor/assets/javascripts/ember.js:5200 | |
| at /Users/samwoodard/Development/kanban_guru/vendor/assets/javascripts/ember.js:5246 | |
| at /Users/samwoodard/Development/kanban_guru/vendor/assets/javascripts/ember.js:30159 | |
| at /Users/samwoodard/Development/kanban_guru/spec/javascripts/spec_helper.js.js:6 | |
| at /Users/samwoodard/usr/local/lib/node_modules/karma-jasmine/lib/adapter.js:158 | |
| at http://localhost:9876/karma.js:233 | |
| at http://localhost:9876/context.html:62 |
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 "When using a Factory", -> | |
| it "has a name", -> | |
| factory = new Factory("factoryName") | |
| expect(factory.name).toEqual("factoryName") | |
| describe "configuration", -> | |
| factory = null | |
| beforeEach -> | |
| factory = new Factory "factory", (config) -> |
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
| 'new': Em.Route.extend | |
| route: '/new' | |
| connectOutlets: (router) -> | |
| newProject = Em.ObjectProxy.create {content: Em.Object.create()} | |
| router.get('applicationController').connectOutlet('project', newProject) | |
| router.get('projectController').connectOutlet('newProject') |
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
| App.NewStoryView = Ember.View.extend | |
| storyTitle: null | |
| templateName: 'stories/new' | |
| classNameBindings: ['hide'] | |
| hide: false | |
| storyTitleDidChange: (-> | |
| console.log @toString() | |
| console.log @get('storyTitle') | |
| ).observes('storyTitle') | |
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 ProjectSerializer < ActiveModel::Serializer | |
| embed :ids, :include => true | |
| attributes :id, :name | |
| has_many :solutions | |
| def as_json(options = {}) | |
| hash = super(options) | |
| hash[:solutions].each{|solution| solution.delete(:stories) } | |
| hash.delete(:stories) | |
| hash |
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 Symbol | |
| def intern | |
| self | |
| end | |
| end |
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 Ckeditor | |
| class Instance | |
| attr_reader :capybara | |
| private :capybara | |
| def initialize(instance_id, capybara) | |
| @instance_id, @capybara = instance_id, capybara | |
| end | |
| def val(value) |
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
| ... | |
| # Gems used only for assets and not required | |
| # in production environments by default. | |
| group :assets do | |
| gem 'sass-rails' | |
| gem 'coffee-rails' | |
| gem 'libv8', '~> 3.11.8' | |
| # See https://github.com/sstephenson/execjs#readme for more supported runtimes |
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.delay = (duration, toRun) -> | |
| Ember.run.later(toRun, duration) | |
| window.waitUntil = (context, interval, toRun, condition) -> | |
| if condition.call(context) | |
| return toRun.call(context) | |
| delay interval, -> | |
| waitUntil(context, interval, toRun, condition) |