Sha256: 415e8a356cfa7ba26150e14aa346ee71a1ecc9bb0c2f576b88adf82abdf1291b
Contents?: true
Size: 748 Bytes
Versions: 8
Compression:
Stored size: 748 Bytes
Contents
require 'spec_helper' CLASS = Rails3::Assist::Artifact::Migration Rails::Migration::Assist.orm = :active_record class ArtDir include CLASS end describe Rails3::Assist::Artifact::Migration::FileName do # use_orm :active_record before do Rails3::Assist::Directory.rails_root = File.dirname (__FILE__) @test = ArtDir.new end describe '#migration_file_name' do it "should return the file name for migration" do CLASS.migration_file_name(:create_persons).should match /create_persons/ end end describe '#migration_file_name' do it "should return the file name for migration" do CLASS.migration_file_name(:create_persons, :root_path => 'my_root').should match /my_root/ end end end
Version data entries
8 entries across 8 versions & 1 rubygems