spec/lib/azeroth/routes_builder_spec.rb in azeroth-0.4.0 vs spec/lib/azeroth/routes_builder_spec.rb in azeroth-0.5.0
- old
+ new
@@ -7,10 +7,10 @@
described_class.new(model, builder, options)
end
let(:controller) { controller_class.new }
let(:params) { ActionController::Parameters.new(parameters) }
- let(:model) { Azeroth::Model.new(:document) }
+ let(:model) { Azeroth::Model.new(:document, options) }
let(:builder) { Sinclair.new(controller_class) }
let(:parameters) { { action: :index, format: :json } }
let(:options) { Azeroth::Options.new(options_hash) }
let(:options_hash) { {} }