Sha256: 52b89a685c17b779ab37efd32740603aa80e1018e29221616221cb9ba41f02e0

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

require 'test_helper'

require 'generators/acts_as_audited/install_generator'

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

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

    assert_migration "db/migrate/install_acts_as_audited.rb" do |content|
      assert_match /class InstallActsAsAudited/, content
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/test/install_generator_test.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/test/install_generator_test.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/test/install_generator_test.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/test/install_generator_test.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/test/install_generator_test.rb
acts_as_audited-2.1.0 test/install_generator_test.rb
acts_as_audited-2.0.0 test/install_generator_test.rb
acts_as_audited-2.0.0.rc7 test/install_generator_test.rb
acts_as_audited-2.0.0.rc6 test/install_generator_test.rb
acts_as_audited-2.0.0.rc5 test/install_generator_test.rb
acts_as_audited-2.0.0.rc4 test/install_generator_test.rb