aboutsummaryrefslogblamecommitdiffstats
path: root/railties/test/generators/stylesheets_generator_test.rb
blob: 718fcb1fa74da37f78b63c9c3d1487b2ac7de9fa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                           
                                                            
 


                                                            




                                                 

                                                
                                          

                                                 
   
require 'generators/generators_test_helper'
require 'generators/rails/stylesheets/stylesheets_generator'

class StylesheetsGeneratorTest < Rails::Generators::TestCase
  include GeneratorsTestHelper

  def test_copy_stylesheets
    run_generator
    assert_file "public/stylesheets/scaffold.css"
  end

  def test_stylesheets_are_not_deleted_on_revoke
    run_generator
    run_generator [], :behavior => :revoke
    assert_file "public/stylesheets/scaffold.css"
  end
end