Sha256: e248b64488474c6d58bcf8e364374ec834b63748f0fa6b25a2fb5350bc781664
Contents?: true
Size: 1.98 KB
Versions: 4
Compression:
Stored size: 1.98 KB
Contents
require 'spec_helper' feature 'Page rendering' do scenario 'home.html' do visit '/' expect(page).to have_content('Dugway') # layout.html expect(page).to have_content('My Product') expect(page).to have_content('$10.00') end scenario 'products.html' do visit '/products' expect(page).to have_content('Dugway') # layout.html expect(page).to have_content('Products') expect(page).to have_content('My Product') expect(page).to have_content('$10.00') end scenario 'product.html' do visit '/product/my-product' expect(page).to have_content('Dugway') # layout.html expect(page).to have_content('My Product') expect(page).to have_content('$10.00') end scenario 'cart.html' do visit '/cart' expect(page).to have_content('Dugway') # layout.html expect(page).to have_content('Cart') expect(page).to have_content('Your cart is empty') end scenario 'success.html' do visit '/success' expect(page).to have_content('Dugway') # layout.html expect(page).to have_content('Thank You. Your order has been placed.') end scenario 'contact.html' do visit '/contact' expect(page).to have_content('Dugway') # layout.html expect(page).to have_content('Contact') expect(page).to have_content('Spam check') end scenario 'maintenance.html' do visit '/maintenance' expect(page).to have_content('Please check back soon.') end scenario 'custom page' do visit '/about-us' expect(page).to have_content('Dugway') # layout.html expect(page).to have_content('About Us') expect(page).to have_content("We're really cool!") end scenario 'styles.css' do visit '/styles.css' expect(page).to have_content('height: 100%;') # one.css expect(page).to have_content('color: red;') # two.css.sass end scenario 'scripts.js' do visit '/scripts.js' expect(page).to have_content("console.log('One')") # one.js expect(page).to have_content("console.log('Two')") # two.js.coffee end end
Version data entries
4 entries across 4 versions & 1 rubygems