Sha256: 54ae28630aafa350809733a1ea45acd79f721a2e0d87bfde1203f56d9771d055
Contents?: true
Size: 622 Bytes
Versions: 10
Compression:
Stored size: 622 Bytes
Contents
test('User visits the the page for a post.', function() { visit('/posts/1'); andThen(function() { // List of posts equal(find('.posts-list .post.active').length, 1, 'The post should be selected in the side bar'); // Main content area equal(find('article.post h1').text().trim(), 'Ember Is Fun!', 'The selected post title should be displayed'); equal(find('article.post .date').text().trim(), 'January 12, 2014', 'The selected post date should be displayed'); ok(find('article.post .body').html().indexOf('<p>Hello world.</p>' > 0), 'The selected post body should be displayed'); }); });
Version data entries
10 entries across 10 versions & 1 rubygems