Sha256: e7999e18e7b57ac02c310ccb1d555e8004e457681fc0900d0321d63df170dc09
Contents?: true
Size: 749 Bytes
Versions: 8
Compression:
Stored size: 749 Bytes
Contents
require 'spec_helper' CLASS = Rails3::Assist::Artifact::Migration Rails3::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