Skip to content

Instantly share code, notes, and snippets.

@keithbro
Created January 20, 2015 11:23
Show Gist options
  • Save keithbro/043b1c12658e7555daf8 to your computer and use it in GitHub Desktop.
Save keithbro/043b1c12658e7555daf8 to your computer and use it in GitHub Desktop.
Example Ember CLI integration test which should pass after running "ember new"
import Ember from "ember";
import { test } from 'ember-qunit';
import startApp from '../helpers/start-app';
var App;
module('An Integration test', {
setup: function() {
App = startApp();
},
teardown: function() {
Ember.run(App, App.destroy);
}
});
test("Page contents", function() {
visit('/').then(function() {
equal( find( 'h2#title' ).text(), 'Welcome to Ember.js' );
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment