Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-13 07:53:32 +0300
committerRémy Coutable <remy@rymai.me>2017-01-13 07:53:32 +0300
commit11001dd97f35e992e157e74110843ee3c7c80aa5 (patch)
tree88cf858b36daa80758876592728762d1f3fac0cc /spec
parented85fdb218970497c212731ddc21ee53b1678346 (diff)
parent65b1ea3ba574c2283fa5a4a744861d8f78a992f8 (diff)
Merge branch 'move-dashboard-group-spinach-to-rspec' into 'master'
Move dashboard group spinach test to rspec See merge request !8434
Diffstat (limited to 'spec')
-rw-r--r--spec/features/dashboard/group_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/features/dashboard/group_spec.rb b/spec/features/dashboard/group_spec.rb
new file mode 100644
index 00000000000..d5f8470fab0
--- /dev/null
+++ b/spec/features/dashboard/group_spec.rb
@@ -0,0 +1,20 @@
+require 'spec_helper'
+
+RSpec.describe 'Dashboard Group', feature: true do
+ before do
+ login_as(:user)
+ end
+
+ it 'creates new grpup' do
+ visit dashboard_groups_path
+ click_link 'New Group'
+
+ fill_in 'group_path', with: 'Samurai'
+ fill_in 'group_description', with: 'Tokugawa Shogunate'
+ click_button 'Create group'
+
+ expect(current_path).to eq group_path(Group.find_by(name: 'Samurai'))
+ expect(page).to have_content('Samurai')
+ expect(page).to have_content('Tokugawa Shogunate')
+ end
+end