Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
41 views

Cannot retrieve saved data from activerecord while testing

I am testing a controller. Index just method saves article to activerecord but i cannot get the article from test code. What am I missing? Controller class ArticlesController < ...
Bigair's user avatar
  • 1,582
0 votes
2 answers
2k views

RSpec testing an error is thrown, ActiveRecord connection

I'm doing a funny thing in a Rails app, connecting to a different DB to read information, but not write it. For ease of making these connections, I wrote models to handle the tables. I have two ...
Brad Rice's user avatar
  • 1,344
3 votes
1 answer
699 views

Different databases for specs

I want to run most my RSpec-s agains blazing fast SQLite, but be able to "tag" particular specs to use PostgreSQL (due to the heavy use of features of PG). this is approx what I need: describe "...
Dmytrii Nagirniak's user avatar