Skip to content

Instantly share code, notes, and snippets.

@eriktrom
eriktrom / application.controller.js
Last active September 17, 2015 08:42
sendAction problem
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
nextVideo() {
console.log('w00t');
}
}
#=Navigating=
visit('/projects')
visit(post_comments_path(post))
#=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click_on('Button Value')
@eriktrom
eriktrom / test.coffee
Last active December 17, 2015 18:19 — forked from fayimora/test.coffee
"use strict"
beforeEach ->
Ember.testing = true
afterEach ->
App.reset()
describe "App.ApplicationController", ->
App = require 'app'
require 'models/provider'
require 'stores/provider'
# Sample test case
describe 'Provider', ->
describe '#create()', ->
# essentially this is testing that our configuration is working
# so somewhat of a redundant test
it 'should return a new Provider record matching input', ->