Sha256: a57db299bfb1edff99550937c93edab33f2283cb128a7225bc679b25e881abc8

Contents?: true

Size: 1.57 KB

Versions: 7

Compression:

Stored size: 1.57 KB

Contents

require File.expand_path('../helper.rb', __FILE__)


invoke 'hobo:subsite', %w[ subs -q]
desc "Subsite files exist"
files_exist? %w[ app/controllers/subs/subs_site_controller.rb
                 test/functional/subs_site_controller_test.rb
                 app/views/taglibs/subs_site.dryml ]
test_value_eql? true

desc "SiteController matches"
file_include? "app/controllers/subs/subs_site_controller.rb",
             'class Subs::SubsSiteController < ApplicationController',
             'hobo_controller'
test_value_eql? true


user_resource_name = 'User'
eval_file '../partials/_subsite_taglib_variables.rb'
eval_file '../partials/_subsite_taglib_noopt.rb'

git_reset_app

invoke 'hobo:basic', %w[ -q ]
invoke 'hobo:subsite', %w[ subs -q --make-front-site]
desc "Subsite with make-front-site files exist"
files_exist? %w[ app/views/taglibs/front_site.dryml
                 app/views/taglibs/application.dryml
                 app/controllers/subs/subs_site_controller.rb
                 test/functional/subs_site_controller_test.rb
                 app/views/taglibs/subs_site.dryml ]
test_value_eql? true


git_reset_app
invoke 'hobo:subsite', %w[ subs -q --admin]
eval_file '../partials/_subsite_taglib_admin.rb'

git_reset_app
invoke 'hobo:subsite', %w[ subs -q --admin --invite-only]
eval_file '../partials/_subsite_taglib_admin_invite_only.rb'

git_reset_app
invoke 'hobo:subsite', %w[ subs --user-resource-name=account -q --admin --invite-only]
user_resource_name = 'Account'
eval_file '../partials/_subsite_taglib_variables.rb'
eval_file '../partials/_subsite_taglib_admin_invite_only.rb'





Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hobo-1.3.0.pre16 test/irt/generators/subsite.irt
hobo-1.3.0.pre15 test/irt/generators/subsite.irt
hobo-1.3.0.pre14 test/irt/generators/subsite.irt
hobo-1.3.0.pre13 test/irt/generators/subsite.irt
hobo-1.3.0.pre12 test/irt/generators/subsite.irt
hobo-1.3.0.pre11 test/irt/generators/subsite.irt
hobo-1.3.0.pre10 test/irt/generators/subsite.irt