Sha256: 83dbe5ce9970c1968e2e497fadc08e8daac65436bce43b0240c37fde4c253b40
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
require 'spec_helper' # Generators are NOT automatically loaded by Rails require 'generators/acts_as_friendable/install/install_generator' describe ActsAsFriendable::Generators::InstallGenerator 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_friendable.rb' do subject { file('db/migrate/create_acts_as_friendable_friendships.rb') } it { should be_a_migration } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_friendable-1.0.1 | spec/generators/install_generator_spec.rb |
acts_as_friendable-1.0.0 | spec/generators/install_generator_spec.rb |