Sha256: a7652a6f323d0201d714064c917515e894df0a49747156351c70af2ab9da8945

Contents?: true

Size: 880 Bytes

Versions: 7

Compression:

Stored size: 880 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 => '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.pre24 test/irt/generators/front_controller.irt
hobo-1.3.0.pre23 test/irt/generators/front_controller.irt
hobo-1.3.0.pre22 test/irt/generators/front_controller.irt
hobo-1.3.0.pre21 test/irt/generators/front_controller.irt
hobo-1.3.0.pre20 test/irt/generators/front_controller.irt
hobo-1.3.0.pre19 test/irt/generators/front_controller.irt
hobo-1.3.0.pre18 test/irt/generators/front_controller.irt