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

Version Path
blogelator-0.2.3 spec/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.2.2 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.2.1 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.1.6 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.1.5 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.1.4 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.1.3 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.1.2 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.1.1 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js
blogelator-0.1.0 spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js