spec/config_spec.rb in schema_dev-2.0.4 vs spec/config_spec.rb in schema_dev-3.0.0
- old
+ new
@@ -1,60 +1,60 @@
describe SchemaDev::Config do
it "computes matrix" do
- config = get_config(ruby: %W[1.9.3 2.1.5], rails: %W[4.0 4.1], db: %W[sqlite3 postgresql])
+ config = get_config(ruby: %W[1.9.3 2.1.5], activerecord: %W[4.0 4.1], db: %W[sqlite3 postgresql])
expect(config.matrix).to match_array [
- { ruby: "1.9.3", rails: "4.0", db: "sqlite3" },
- { ruby: "1.9.3", rails: "4.0", db: "postgresql" },
- { ruby: "1.9.3", rails: "4.1", db: "sqlite3" },
- { ruby: "1.9.3", rails: "4.1", db: "postgresql" },
- { ruby: "2.1.5", rails: "4.0", db: "sqlite3" },
- { ruby: "2.1.5", rails: "4.0", db: "postgresql" },
- { ruby: "2.1.5", rails: "4.1", db: "sqlite3" },
- { ruby: "2.1.5", rails: "4.1", db: "postgresql" },
+ { ruby: "1.9.3", activerecord: "4.0", db: "sqlite3" },
+ { ruby: "1.9.3", activerecord: "4.0", db: "postgresql" },
+ { ruby: "1.9.3", activerecord: "4.1", db: "sqlite3" },
+ { ruby: "1.9.3", activerecord: "4.1", db: "postgresql" },
+ { ruby: "2.1.5", activerecord: "4.0", db: "sqlite3" },
+ { ruby: "2.1.5", activerecord: "4.0", db: "postgresql" },
+ { ruby: "2.1.5", activerecord: "4.1", db: "sqlite3" },
+ { ruby: "2.1.5", activerecord: "4.1", db: "postgresql" },
]
end
it "excludes explicit elements from matrix" do
- config = get_config(ruby: %W[1.9.3 2.1.5], rails: %W[4.0 4.1], db: %W[sqlite3 postgresql],
+ config = get_config(ruby: %W[1.9.3 2.1.5], activerecord: %W[4.0 4.1], db: %W[sqlite3 postgresql],
exclude: [
- { ruby: "1.9.3", rails: "4.1", db: "postgresql" },
- { ruby: "2.1.5", rails: "4.0", db: "sqlite3" } ]
+ { ruby: "1.9.3", activerecord: "4.1", db: "postgresql" },
+ { ruby: "2.1.5", activerecord: "4.0", db: "sqlite3" } ]
)
expect(config.matrix).to match_array [
- { ruby: "1.9.3", rails: "4.0", db: "sqlite3" },
- { ruby: "1.9.3", rails: "4.0", db: "postgresql" },
- { ruby: "1.9.3", rails: "4.1", db: "sqlite3" },
- # { ruby: "1.9.3", rails: "4.1", db: "postgresql" },
- # { ruby: "2.1.5", rails: "4.0", db: "sqlite3" },
- { ruby: "2.1.5", rails: "4.0", db: "postgresql" },
- { ruby: "2.1.5", rails: "4.1", db: "sqlite3" },
- { ruby: "2.1.5", rails: "4.1", db: "postgresql" },
+ { ruby: "1.9.3", activerecord: "4.0", db: "sqlite3" },
+ { ruby: "1.9.3", activerecord: "4.0", db: "postgresql" },
+ { ruby: "1.9.3", activerecord: "4.1", db: "sqlite3" },
+ # { ruby: "1.9.3", activerecord: "4.1", db: "postgresql" },
+ # { ruby: "2.1.5", activerecord: "4.0", db: "sqlite3" },
+ { ruby: "2.1.5", activerecord: "4.0", db: "postgresql" },
+ { ruby: "2.1.5", activerecord: "4.1", db: "sqlite3" },
+ { ruby: "2.1.5", activerecord: "4.1", db: "postgresql" },
]
end
it "excludes slices from matrix" do
- config = get_config(ruby: %W[1.9.3 2.1.5], rails: %W[4.0 4.1], db: %W[sqlite3 postgresql],
+ config = get_config(ruby: %W[1.9.3 2.1.5], activerecord: %W[4.0 4.1], db: %W[sqlite3 postgresql],
exclude: [
- { ruby: "1.9.3", rails: "4.1"},
+ { ruby: "1.9.3", activerecord: "4.1"},
{ ruby: "2.1.5", db: "sqlite3" } ]
)
expect(config.matrix).to match_array [
- { ruby: "1.9.3", rails: "4.0", db: "sqlite3" },
- { ruby: "1.9.3", rails: "4.0", db: "postgresql" },
- #{ ruby: "1.9.3", rails: "4.1", db: "sqlite3" },
- #{ ruby: "1.9.3", rails: "4.1", db: "postgresql" },
- #{ ruby: "2.1.5", rails: "4.0", db: "sqlite3" },
- { ruby: "2.1.5", rails: "4.0", db: "postgresql" },
- #{ ruby: "2.1.5", rails: "4.1", db: "sqlite3" },
- { ruby: "2.1.5", rails: "4.1", db: "postgresql" },
+ { ruby: "1.9.3", activerecord: "4.0", db: "sqlite3" },
+ { ruby: "1.9.3", activerecord: "4.0", db: "postgresql" },
+ #{ ruby: "1.9.3", activerecord: "4.1", db: "sqlite3" },
+ #{ ruby: "1.9.3", activerecord: "4.1", db: "postgresql" },
+ #{ ruby: "2.1.5", activerecord: "4.0", db: "sqlite3" },
+ { ruby: "2.1.5", activerecord: "4.0", db: "postgresql" },
+ #{ ruby: "2.1.5", activerecord: "4.1", db: "sqlite3" },
+ { ruby: "2.1.5", activerecord: "4.1", db: "postgresql" },
]
end
it "uses last cell for --quick" do
- config = get_config(ruby: %W[1.9.3 2.1.5], rails: %W[4.0 4.1], db: %W[sqlite3 postgresql])
+ config = get_config(ruby: %W[1.9.3 2.1.5], activerecord: %W[4.0 4.1], db: %W[sqlite3 postgresql])
expect(config.matrix quick: true).to match_array [
- { ruby: "2.1.5", rails: "4.1", db: "postgresql" },
+ { ruby: "2.1.5", activerecord: "4.1", db: "postgresql" },
]
end
end