Skip to content

Commit

Permalink
Expect Rails eager-loading in runner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olejrosendahl committed Sep 23, 2015
1 parent 1980e5e commit 2b9c01d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/validation_error_reporter/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module ValidationErrorReporter

describe "#run(options)" do
it "fetches the models and processes the errors" do
expect(Rails).to receive_message_chain(:application, :eager_load!)
expect(Entity).to receive(:models_for).with(nil).and_return([Company])
configuration = Configuration.new
expect(Configuration).to receive(:new).and_return(configuration)
Expand Down

0 comments on commit 2b9c01d

Please sign in to comment.