Sha256: 2cf48b447cbe55105f34476cf0cd1c3e548008206a97e2e6c9bc770a1388e7cd
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true describe DataMigrate::DatabaseTasks do let(:subject) { DataMigrate::DatabaseTasks } before do # In a normal Rails installation, db_dir would defer to # Rails.application.config.paths["db"].first # @see https://github.com/rails/rails/blob/a7d49ef78c36df2d1ca876451f30915ada1079a5/activerecord/lib/active_record/tasks/database_tasks.rb#L54 allow(subject).to receive(:db_dir).and_return("db") end describe :schema_file do it "returns the correct data schema file path" do expect(subject.schema_file).to eq "db/data_schema.rb" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
data_migrate-3.3.0 | spec/data_migrate/database_tasks_spec.rb |