Sha256: 25d590f8ac8e6bcc2f6be3c1ff686e6881fc6e5876405f7b0f28ad1ed4f0b7c7

Contents?: true

Size: 464 Bytes

Versions: 33

Compression:

Stored size: 464 Bytes

Contents

require 'test_helper'

require 'generators/audited/install_generator'

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

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

    assert_migration "db/migrate/install_audited.rb" do |content|
      assert_match /class InstallAudited/, content
    end
  end
end

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
notifiably_audited-3.0.0 test/install_generator_test.rb
audited-4.2.2 test/install_generator_test.rb
audited-4.2.1 test/install_generator_test.rb
audited-4.2.0 test/install_generator_test.rb
audited-4.0.0 test/install_generator_test.rb
audited-4.0.0.rc1 test/install_generator_test.rb
notifiably_audited-1.0.11 test/install_generator_test.rb
notifiably_audited-1.0.10 test/install_generator_test.rb
notifiably_audited-1.0.9 test/install_generator_test.rb
notifiably_audited-1.0.8 test/install_generator_test.rb
notifiably_audited-1.0.7 test/install_generator_test.rb
notifiably_audited-1.0.6 test/install_generator_test.rb
notifiably_audited-1.0.5 test/install_generator_test.rb
notifiably_audited-1.0.4 test/install_generator_test.rb
notifiably_audited-1.0.3 test/install_generator_test.rb
notifiably_audited-1.0.2 test/install_generator_test.rb
notifiably_audited-1.0.1 test/install_generator_test.rb
notifiably_audited-1.0.0 test/install_generator_test.rb
notifiably_audited-0.1.12 test/install_generator_test.rb
notifiably_audited-0.1.11 test/install_generator_test.rb