BikeBikeBike/spec/features/pages/organization_registration_spec.rb

22 lines
550 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'Organization Registration' do
let(:user) { FactoryGirl.create(:user) }
before(:each) do
visit login_path
form = find 'form[action$="/user_sessions"]'
2014-05-17 19:00:39 -06:00
form.find("#email").set(user.email)
form.find("#password").set('secret')
2014-05-04 14:56:18 -06:00
click_button "Sign_In"
visit new_organization_path
end
it "works as expected" do
fill_in 'organization_name', :with => 'Bike Kitchen'
fill_in 'organization_slug', :with => 'bike-kitchen'
fill_in 'organization_email_address', :with => 'bikekitchen@example.com'
end
end