Sha256: 73a3db143f188b1561da092c453178702e07562b0c6ab34c491822a52c3ce14f

Contents?: true

Size: 956 Bytes

Versions: 7

Compression:

Stored size: 956 Bytes

Contents

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


invoke 'hobo:front_controller', %w[ -q ]
desc "All files exist"
files_exist? %w[ app/controllers/front_controller.rb
                 app/helpers/front_helper.rb
                 test/unit/helpers/front_helper_test.rb
                 test/functional/front_controller_test.rb
                 app/views/front/index.dryml
                 app/views/front/summary.dryml ]
test_value_eql? true

desc "public/index.html removed"
File.exists? 'public/index.html'
test_value_eql? false


desc "front_controller.rb content matches"
file_include? 'app/controllers/front_controller.rb',
              'hobo_controller',
              'def index',
              'def summary',
              'def search'
test_value_eql? true


desc "Routes added"
file_include? 'config/routes.rb',
              %(match 'search' => 'front#search', :as => 'search'),
              %(root :to => 'front#index')
test_value_eql? true

Version data entries

7 entries across 7 versions & 1 rubygems

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