Sha256: 0954cbaf64a4c7f2426feec5c8059d6ae5e24b52542da3481a2ea5b17e871af5

Contents?: true

Size: 848 Bytes

Versions: 2

Compression:

Stored size: 848 Bytes

Contents

module Enginery
  module Test
    module DeleteController
      Spec.new self do

        Dir.chdir DST_ROOT do

          is(new_app 'App').ok?

          Dir.chdir 'App' do

            entries = [
              'base/controllers/foo/',
              'base/controllers/foo' + Enginery::CONTROLLER_SUFFIX,
              'base/controllers/foo/bar' + Enginery::ROUTE_SUFFIX,
              'base/views/foo/bar.erb',
              'base/specs/foo/bar' + Enginery::SPEC_SUFFIX
            ]

            is(new_controller 'Foo').ok?
            is(new_route 'Foo bar').ok?
            entries.each do |e|
              does(File).exists? e
            end

            is(delete_controller 'Foo').ok?
            entries.each do |e|
              refute(File).exists? e
            end
          
          end
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
my_enginery-0.2.8 test/delete/test__controller.rb
enginery-0.3.0 test/delete/test__controller.rb