gitlab-org--gitlab-foss/spec/features/dashboard/group_spec.rb
Annabel Dunstone Gray 0278b91203 Fix specs
2017-05-12 09:27:05 -05:00

22 lines
595 B
Ruby

require 'spec_helper'
RSpec.describe 'Dashboard Group', feature: true do
before do
login_as(:user)
end
it 'creates new group', js: true do
visit dashboard_groups_path
find('.btn-new').trigger('click')
new_path = 'Samurai'
new_description = 'Tokugawa Shogunate'
fill_in 'group_path', with: new_path
fill_in 'group_description', with: new_description
click_button 'Create group'
expect(current_path).to eq group_path(Group.find_by(name: new_path))
expect(page).to have_content(new_path)
expect(page).to have_content(new_description)
end
end