Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.464 kb
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
Jump to Line
Something went wrong with that request. Please try again.