Activate versioning for tests The tests were failing because of the lack of versioning.By default, versioning is off for tests. As a result, here (app/views/proposal/_form.html.haml L43) commercial,versions.last returns nil as there are no versions.