35 lines
799 B
Ruby
35 lines
799 B
Ruby
class Spinach::Features::PublicProjectsFeature < Spinach::FeatureSteps
|
|
include SharedPaths
|
|
|
|
step 'I should see project "Community"' do
|
|
page.should have_content "Community"
|
|
end
|
|
|
|
step 'I should not see project "Enterprise"' do
|
|
page.should_not have_content "Enterprise"
|
|
end
|
|
|
|
step 'I should see public project details' do
|
|
page.should have_content '32 branches'
|
|
page.should have_content '16 tags'
|
|
end
|
|
|
|
step 'I should see project readme' do
|
|
page.should have_content 'README.md'
|
|
end
|
|
|
|
step 'public project "Community"' do
|
|
create :project_with_code, name: 'Community', public: true
|
|
end
|
|
|
|
step 'private project "Enterprise"' do
|
|
create :project, name: 'Enterprise'
|
|
end
|
|
|
|
private
|
|
|
|
def project
|
|
@project ||= Project.find_by_name("Community")
|
|
end
|
|
end
|
|
|