Sha256: 1b75a254e3764862f1dcf97c2df4e287f38a960fe438d4ee6598fcae570ffe60
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
module Enginery module Test module DeleteView Spec.new self do Dir.chdir DST_ROOT do is(new_app 'App').ok? Dir.chdir 'App' do Testing 'with default engine' do entries = [ 'base/views/foo/bar.erb', ] is(new_controller 'Foo').ok? is(new_route 'Foo bar').ok? entries.each do |e| does(File).exists? e end is(delete_view 'Foo bar').ok? entries.each do |e| refute(File).exists? e end end Testing 'with custom engine' do entries = [ 'base/views/baz/bar.slim', ] is(new_controller 'Baz e:Slim').ok? is(new_route 'Baz bar').ok? entries.each do |e| does(File).exists? e end is(delete_view 'Baz bar').ok? entries.each do |e| refute(File).exists? e end 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__view.rb |
enginery-0.3.0 | test/delete/test__view.rb |