stubs settings in spec

pull/6827/head
Jens Ulferts 10 years ago
parent 0fd4bfdb94
commit b95eb1df87
  1. 2
      spec/controllers/documents_controller_spec.rb

@ -92,7 +92,7 @@ LOREM
before :each do
ActionMailer::Base.deliveries.clear
Setting.notified_events = Setting.notified_events.dup << 'document_added'
allow(Setting).to receive(:notified_events).and_return(Setting.notified_events.dup << 'document_added')
end
it "should create a new document with valid arguments" do

Loading…
Cancel
Save