Sha256: cafa52611533f7e819e7749ed87ffc0ced29761e2a64b27a85d73cfe244b54ad

Contents?: true

Size: 885 Bytes

Versions: 15

Compression:

Stored size: 885 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 ]
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 search'
test_value_eql? true


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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hobo-1.3.3 test/irt/generators/front_controller.irt
hobo-1.3.2 test/irt/generators/front_controller.irt
hobo-1.3.1 test/irt/generators/front_controller.irt
hobo-1.3.0 test/irt/generators/front_controller.irt
hobo-1.3.0.RC4 test/irt/generators/front_controller.irt
hobo-1.3.0.RC3 test/irt/generators/front_controller.irt
hobo-1.3.0.RC2 test/irt/generators/front_controller.irt
hobo-1.3.0.RC1 test/irt/generators/front_controller.irt
hobo-1.3.0.RC test/irt/generators/front_controller.irt
hobo-1.3.0.pre31 test/irt/generators/front_controller.irt
hobo-1.3.0.pre29 test/irt/generators/front_controller.irt
hobo-1.3.0.pre28 test/irt/generators/front_controller.irt
hobo-1.3.0.pre27 test/irt/generators/front_controller.irt
hobo-1.3.0.pre26 test/irt/generators/front_controller.irt
hobo-1.3.0.pre25 test/irt/generators/front_controller.irt