Sha256: 4f3dc835b99976c075f45c890af8b1c14cbeba0cc72b4a1ea1e23b9c95398e4a
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require File.expand_path("../../spec_helper", __FILE__) require File.expand_path("../../../active_migration", __FILE__) require File.expand_path("../../../schemas", __FILE__) require File.expand_path('../../support/active_migration_helper', __FILE__) describe ActiveMigration::Schemas::SchemasMigration do before :all do build_migration_schemas_config() end before do @active_migration_schemas = ActiveMigration::Schemas::SchemasMigration.new("tmp/schemas.yml") end subject { @active_migration_schemas } it { should respond_to(:migrate!) } it { @active_migration_schemas.schemas.should include "test" } it { @active_migration_schemas.schemas["test"].should include :from } it { @active_migration_schemas.schemas["test"].should include :to } describe "migrate file schemas" do before do build_schemas_tmp_classes() @result = @active_migration_schemas.migrate! puts District.all.to_yaml end it { @result.should be_true } it { } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guara-0.0.3 | lib/spec/lib/active_migration_schemas_spec.rb |
guara-0.0.1.rc | lib/spec/lib/active_migration_schemas_spec.rb |