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") }
|
|
|
|
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
|
2011-10-26 15:46:25 +02:00
|
|
|
should have_content("app")
|
|
|
|
should have_content("history")
|
|
|
|
should have_content("Gemfile")
|
2011-10-08 23:36:38 +02:00
|
|
|
end
|
|
|
|
end
|