Created
January 20, 2015 11:23
-
-
Save keithbro/043b1c12658e7555daf8 to your computer and use it in GitHub Desktop.
Example Ember CLI integration test which should pass after running "ember new"
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
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