WELCOME to the OpenTechSchool.org Public Chat. Any questions about OTS, chat away!
People
Repo info
Activity
erikwjonsson
@erikwjonsson
Sure. I'm coming, just wondering if you had some suggestions before that I can experiment with until then.
Martin Meyerhoff
@mamhoff
I'm quite sure Capybara works with partials. Try using pry in your spec to see what the page variable is, and whether it has any page.content.
erikwjonsson
@erikwjonsson
ok, thanks. will try to check it out.
erikwjonsson
@erikwjonsson
think I figured out the issue. I had not logged in the user in the test so could not find the form :P
Martin Meyerhoff
@mamhoff
nice!
erikwjonsson
@erikwjonsson
ActiveRecord::StatementInvalid: SQLite3::BusyException: database is locked: commit transaction
Has anyone run into that issue with Rails. That the database is locked. I get it in one of my tests. Stackoverflow posts says this is a very unusual issue and usually happens when not several request to the database are competing and that it's also because Activerecord is very fragile.
Martin Meyerhoff
@mamhoff
erikwjonsson: No, that happens when your tests run in parallel and your database is SQLite. Try using Postgres, and it won't happen again.
erikwjonsson
@erikwjonsson
Thanks for the tip, Martin. That might be the solution, but I've gotten issue with PG instead which I have a hard time finding solution for.
PG::ConnectionBad: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5433?
does this seem familiar?
Martin Meyerhoff
@mamhoff
Rails does not find your Postgres server. You can check whether it's running using ps ax | grep post, and if it is, you have to check the configuration under /etc/postgres. Which OS are you using?
It kinda sorta "just works" all the time. Read the docs if it doesn't.
erikwjonsson
@erikwjonsson
ok, thanks. Will check it out.
Stefan G.
@itbsStefan
@xMartin i am in the tight room?
designbygio
@gsambrotta
@itbsStefan no :)
Benjamin Kampmann
@gnunicorn
wasn't there, like a berlin gitter channel, too?
well, whatever.
@mamhoff, @haikoschol , @ellenkoenig I cancelled the Ruby and Python CoLearn in 2 weeks as it would be in the xmas break - next scheduled (after tonight) there Jan 9th.
@gsambrotta , @xMartin, @skade you might want to do the same for Web and Rust - they are scheduled for the 28th of Dec at the moment.