Sha256: 40b7fd01d2dc0fc08e5a47bbd4217842a8ef9e9d83e2d95e259815526d2e51ea

Contents?: true

Size: 488 Bytes

Versions: 17

Compression:

Stored size: 488 Bytes

Contents

require 'helper'
require 'generators/acts_as_cleo/install/install_generator'

class InstallGeneratorTest < Rails::Generators::TestCase
  destination File.expand_path('../../tmp', __FILE__)
  setup :prepare_destination
  tests ActsAsCleo::InstallGenerator

  should "generate a migration" do
    run_generator %w(install)

    Dir['/tmp/db/migrate/*.rb'].each do |m|
      assert_migration m do |content|
        assert_match /class InstallActsAsCleo/, content
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
acts_as_cleo-3.0.2 test/test_install_generator.rb
acts_as_cleo-3.0.1 test/test_install_generator.rb
acts_as_cleo-3.0.0 test/test_install_generator.rb
acts_as_cleo-2.4.5 test/test_install_generator.rb
acts_as_cleo-2.4.4 test/test_install_generator.rb
acts_as_cleo-2.4.3 test/test_install_generator.rb
acts_as_cleo-2.4.2 test/test_install_generator.rb
acts_as_cleo-2.4.1 test/test_install_generator.rb
acts_as_cleo-2.4.0 test/test_install_generator.rb
acts_as_cleo-2.3.0 test/test_install_generator.rb
acts_as_cleo-2.2.1 test/test_install_generator.rb
acts_as_cleo-2.2.0 test/test_install_generator.rb
acts_as_cleo-2.1.2 test/test_install_generator.rb
acts_as_cleo-2.1.1 test/test_install_generator.rb
acts_as_cleo-2.1.0 test/test_install_generator.rb
acts_as_cleo-2.0.1 test/test_install_generator.rb
acts_as_cleo-2.0.0 test/test_install_generator.rb