WELCOME to the OpenTechSchool.org Public Chat. Any questions about OTS, chat away!
People
Repo info
Activity
xMartin
@xMartin
@strongdan alaska maybe? exciting!
Dan Strong
@strongdan
@mamhoff@xMartin Yes - hopefully, Juneau, Alaska. We'll see what the interest level is here.
@lehmannro Thanks, Robert. Will do.
xMartin
@xMartin
@strongdan cool! if you're not sure about the interest level, it might make sense to not implement all the chapter stuff initially but start with one event and see from there
erikwjonsson
@erikwjonsson
Hey Ruby people! I want to write tests for an app, but realised that testing with Rails standard testing suite and Capybara does not seem to work with partials. What gems etc. do you recommend using?
Martin Meyerhoff
@mamhoff
erikwjohnsson: I think they should work. What about you come to tonight's Ruby Co-Learning, and we have a look together?
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.