Sha256: ac9319a62250c69b732f411a018b77fbdfdf7eecb4e9d19de51c1f805600f98d
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' describe MonkeyButler::Util do describe '#migrations_by_version' do it "returns a Hash keyed by version" do paths = %w{migrations/20140523123443021_create_sandbox.sql migrations/20140523123845031_add_comments_table.sql} hash = MonkeyButler::Util.migrations_by_version(paths) hash.size.should == 2 hash[20140523123443021].should == 'migrations/20140523123443021_create_sandbox.sql' hash[20140523123845031].should == 'migrations/20140523123845031_add_comments_table.sql' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
monkey_butler-1.2.2 | spec/util_spec.rb |