Sha256: 5dee3cf7f4dd2438a63eff9638267acf58257806fa8b7de900f7d80dfc5d24f0
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
require "spec_helper" module Marty describe "Migrations" do it "writes db views correctly" do tdir = File.dirname(__FILE__) + "/migrations/" Marty::Migrations.write_view(tdir, 'vw_marty_postings', Marty::Posting, {}, ["comment"], [["marty_posting_types", "id"]]) filename = "vw_marty_postings.sql" genfile = File.join(tdir,filename) generated = File.read(genfile) expected = File.read(File.join(tdir,"#{filename}.expected")) expect(generated).to eq(expected) File.delete(genfile) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marty-0.5.29 | spec/lib/migrations_spec.rb |