Skip to content

Instantly share code, notes, and snippets.

@teddyzeenny
Last active August 29, 2015 13:57
Show Gist options
  • Save teddyzeenny/9531451 to your computer and use it in GitHub Desktop.
Save teddyzeenny/9531451 to your computer and use it in GitHub Desktop.
describe("reports", function () {
before(function() {
Ember.run(Social, Social.advanceReadiness);
});
afterEach(function() {
Social.reset();
});
describe('profiles', function() {
beforeEach(function() {
visit("/accounts/64");
});
it('should load some profiles', function() {
// our code never gets into this block
find('#nav-profiles a[href="#/accounts/64"]').should.exist;
find('#nav-profiles a[href="#/accounts/281"]').should.exist;
});
});
});
// Code below in reports.html
Social.rootElement = "#social-testing";
Social.setupForTesting();
Social.injectTestHelpers();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment