summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples.rb
blob: a2e94ac109bd198d429b45682163db4dbde3c482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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