Permalink
Browse files

Merge branch 'master' of github.com:mbleigh/acts-as-taggable-on

  • Loading branch information...
2 parents 1bc9ea1 + 0662e66 commit a61d1f3aafd3b36f9d26351680977569f7f47e5c @artemk artemk committed Nov 28, 2011
View
@@ -5,3 +5,4 @@
.rvmrc
Gemfile.lock
spec/database.yml
+tmp
@@ -12,6 +12,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'rails', '~> 3.1'
gem.add_development_dependency 'rspec', '~> 2.5'
+ gem.add_development_dependency 'ammeter', '~> 0.1.3'
gem.add_development_dependency 'sqlite3'
gem.add_development_dependency 'mysql2', '~> 0.3.7'
gem.add_development_dependency 'pg'
@@ -0,0 +1,22 @@
+require 'spec_helper'
+
+# Generators are not automatically loaded by Rails
+require 'generators/acts_as_taggable_on/migration/migration_generator'
+
+describe ActsAsTaggableOn::MigrationGenerator do
+ # Tell the generator where to put its output (what it thinks of as Rails.root)
+ destination File.expand_path("../../../../../tmp", __FILE__)
+
+ before do
+ prepare_destination
+ Rails::Generators.options[:rails][:orm] = :active_record
+ end
+ describe 'no arguments' do
+ before { run_generator }
+
+ describe 'db/migrate/acts_as_taggable_on_migration.rb' do
+ subject { file('db/migrate/acts_as_taggable_on_migration.rb') }
+ it { should be_a_migration }
+ end
+ end
+end
View
@@ -19,6 +19,7 @@
Bundler.require
require File.expand_path('../../lib/acts-as-taggable-on', __FILE__)
+require 'ammeter/init'
unless [].respond_to?(:freq)
class Array

0 comments on commit a61d1f3

Please sign in to comment.