Sha256: 6986c884497ab17536de69f7cf3288e2c7e7a68105ba47573059391f83dfdf41

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

# (c) 2017 Ribose Inc.
#

require "spec_helper"

RSpec.describe "db:mask", :suppress_progressbar do
  subject { Rake::Task["db:mask"] }

  it "loads all application's models eagerly" do
    expect(Rails.application).to receive(:eager_load!)
    subject.execute
    expect(defined? NonPersistedModel).to be_truthy
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attr_masker-0.3.0 spec/unit/rake_task_spec.rb
attr_masker-0.2.1 spec/unit/rake_task_spec.rb