Sha256: 67bde4109c46730d6d0dabb7f2b065de7a00fc2fa8964c9aaa593baca989ef7e

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

require 'test_helper'
require 'rails/generators/rails/scaffold/scaffold_generator'
require 'rails/generators/myth/assets/assets_generator'

class ScaffoldGeneratorTest < Rails::Generators::TestCase
  tests Rails::Generators::ScaffoldGenerator

  destination File.expand_path("../tmp", __FILE__)
  setup do
    prepare_destination
    copy_routes
  end

  def test_assets
    run_generator %w(posts --stylesheet-engine=myth --orm=false)
    assert_no_file "app/assets/stylesheets/posts.css"
    assert_file "app/assets/stylesheets/posts.css.myth"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
myth-rails-1.0.1 test/scaffold_generator_test.rb