clarion/spec/features/volunteership_spec.rb

19 lines
428 B
Ruby
Raw Normal View History

2019-01-08 00:20:31 +02:00
require "rails_helper"
feature 'Volunteering' do
before do
Rails.application.load_seed
sign_in_as_admin
create_new_conference
sign_out
end
scenario 'A user applies to be a volunteer for the upcoming conference' do
visit root_path
click_on I18n.t('views.volunteers.apply')
fill_in_volunteer_profile
expect(page).to have_content I18n.t('views.volunteers.successful_application')
end
end