Sha256: 2c4ecc407533022f93b4a9e3b523969a0732af6bf0f1b7360004c371bcef04f0

Contents?: true

Size: 453 Bytes

Versions: 5

Compression:

Stored size: 453 Bytes

Contents

require 'rails_helper'

describe 'admin dashboard' do
  let!(:account){ FactoryGirl.create :confirmed_account }

  it "should require account login" do
    visit "/theblog/admin"

    expect(page).to have_content('Log in')

    fill_in('Email', with: account.email)
    fill_in('Password', with: 'qwertyui')
    click_on('Log in')

    expect(page).to have_content('Signed in successfully')
    expect(page).to have_content('Admin Dashboard')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
theblog-0.0.2.3 spec/features/admin/dashboard_spec.rb
theblog-0.0.2.2 spec/features/admin/dashboard_spec.rb
theblog-0.0.2 spec/features/admin/dashboard_spec.rb
theblog-0.0.1.1 spec/features/admin/dashboard_spec.rb
theblog-0.0.1 spec/features/admin/dashboard_spec.rb