Sha256: 09eb447bae4b071b69b9bccab1b825c3ba60f071d79857a622a9042565a36c0a
Contents?: true
Size: 607 Bytes
Versions: 10
Compression:
Stored size: 607 Bytes
Contents
test('User visits the admin page.', function() { visit('/'); andThen(function() { // List of posts equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.'); equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post'); equal(find('.posts-list .post:first .summary').text().trim(), 'Hello world.', 'The summary should be displayed for each post'); // Main content area equal(find('article.post h1').text().trim(), 'Ember Is Fun!', 'The first post title should be displayed'); }); });
Version data entries
10 entries across 10 versions & 1 rubygems