2
For learning purposes I am using the services of Travis-CI to carry out the integration tests continues on a personal project. When running the test locally all pass, no errors. However, when running in Travis-CI there is this return.
https://travis-ci.org/luizpicolo/website-ruby-rspec-mongodb/builds/19042099
Well, the error is very clear, saying that you are not finding the data and so the error return.
To do so, I created some Factories to test my models. They are inserted into the database during the process.
FactoryGirl.define do
factory :article do
title "Title for Test"
description ""
body "Body for Test"
position_image_highlighted "none"
end
factory :tag do
name "Name for Test"
end
factory :slide do
title "Title for Test"
link "Link for test"
image "Image way for test"
end
end
However, and apparently, this does not happen in Travis-CI. Someone has already been through this and can give a solution.
My perfect friend reply. Thank you very much.
– Luiz Picolo