-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
I'm in the process of upgrading to 3.x and ran into a weird issue in my controller specs.
Unable to find source-code formatter for language: `. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
describe DiseasesController do let(:disease) {Fabricate(:disease)} it "assigns the disease as @disease" do put :update, id: disease.id.to_s, disease: {} assigns(:disease).should eq(disease) end etc...
`
The above, which used to work fine, now produces Mongoid::Errors::Callback. This is the case when using Fabricator or FactoryGirl. The model does not have callbacks and I even tried commenting all validations, methods, fields, etc... Changing the let to let! fixes the issue. I'm not sure why this is occurring and any help is appreciated.