2011-10-09 00:36:38 +03:00
|
|
|
shared_examples_for :project_side_pane do
|
|
|
|
subject { page }
|
|
|
|
it { should have_content((@project || project).name) }
|
|
|
|
it { should have_content("Commits") }
|
2012-02-08 20:26:31 +02:00
|
|
|
it { should have_content("Files") }
|
2011-10-09 00:36:38 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
shared_examples_for :tree_view do
|
|
|
|
subject { page }
|
|
|
|
|
|
|
|
it "should have Tree View of project" do
|
2011-10-26 18:46:25 +05:00
|
|
|
should have_content("app")
|
2012-01-18 00:04:27 +02:00
|
|
|
should have_content("History")
|
2011-10-26 18:46:25 +05:00
|
|
|
should have_content("Gemfile")
|
2011-10-09 00:36:38 +03:00
|
|
|
end
|
|
|
|
end
|