summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples.rb
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
committergitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
commit9ba1224867665844b117fa037e1465bb706b3685 (patch)
tree52fbfc1cdb55df21843965479c97be0c91121a9a /spec/support/shared_examples.rb
parent93efff945215a4407afcaf0cba15ac601b56df0d (diff)
downloadgitlab-ce-9ba1224867665844b117fa037e1465bb706b3685.tar.gz
init commit
Diffstat (limited to 'spec/support/shared_examples.rb')
-rw-r--r--spec/support/shared_examples.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/support/shared_examples.rb b/spec/support/shared_examples.rb
new file mode 100644
index 00000000000..a2e94ac109b
--- /dev/null
+++ b/spec/support/shared_examples.rb
@@ -0,0 +1,18 @@
+shared_examples_for :project_side_pane do
+ subject { page }
+ it { should have_content((@project || project).name) }
+ it { should have_content("Commits") }
+ it { should have_content("Team") }
+ it { should have_content("Tree") }
+end
+
+
+shared_examples_for :tree_view do
+ subject { page }
+
+ it "should have Tree View of project" do
+ should have_content("app")
+ should have_content("history")
+ should have_content("Gemfile")
+ end
+end