gitlabhq/spec/support/shared_examples.rb

17 lines
408 B
Ruby
Raw Normal View History

2011-10-08 23:36:38 +02:00
shared_examples_for :project_side_pane do
subject { page }
it { should have_content((@project || project).name) }
it { should have_content("Commits") }
2012-01-29 23:43:14 +01:00
it { should have_content("Code") }
2011-10-08 23:36:38 +02:00
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")
2011-10-08 23:36:38 +02:00
end
end