Sha256: 0721bc156d053b0a33ef8ed7c67fb51604b7aa9d4f69c1e4711852a08c12b5cc

Contents?: true

Size: 438 Bytes

Versions: 16

Compression:

Stored size: 438 Bytes

Contents

require 'test_helper'

class MigrationGeneratorTest < Rails::Generators::TestCase
  tests       AttachmentMagick::Generators::MigrationGenerator
  destination File.expand_path("../../tmp", __FILE__)

  setup do
    prepare_destination
  end

  test "Assert all files are properly created" do
    run_generator

    assert Dir["#{File.expand_path("../../tmp", __FILE__)}/**/*.rb"].first.include?("attachment_magick_migration.rb")
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
attachment_magick-0.3.6 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.3.5 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.3.4 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.3.3 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.3.2 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.3.1 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.3 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.7 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.6 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.5 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.4 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.3 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.2 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.1 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.2.0 test/attachment_magick/generators/migration_generator_test.rb
attachment_magick-0.1.0 test/attachment_magick/generators/migration_generator_test.rb