require 'spec_helper'

describe 'show school' do

  it 'should show school details' do
    admin = create :admin
    school = create :school, name: 'My School', description: 'School description', address: 'School address'
    login_as_user admin
    visit admin_path

    click_link 'admin_schools_link'
    click_link "show_school_#{school.id}"
    page.should have_content 'My School'
    page.should have_content 'School description'
    page.should have_content 'School address'
  end
end
