Sha256: 37019fa7f1addb1a1752aad38d23e07d45be37a3dcb6edec88a6e7309e0138a8
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
require 'spec_helper' require 'generators/rails_pages/helper/helper_generator' describe RailsPages::Generators::ControllerGenerator do destination = File.expand_path('../../dummy', __FILE__) context 'generate' do before(:all) do Dir.chdir(destination) { %x(rails generate rails_pages:helper test) } end describe 'tests_helper.rb' do it 'should exist' do expect(File.exist? "#{destination}/app/helpers/tests_helper.rb").to be_true end end end context 'destroy' do before(:all) do Dir.chdir(destination) { %x(rails destroy rails_pages:helper test) } end describe 'tests_helper.rb' do it 'should not exist' do expect(File.exist? "#{destination}/app/helpers/tests_helper.rb").to be_false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_pages-0.0.3 | spec/integration/helper_generator_spec.rb |