1) Ruby is hard to get a job in, so you are off to a rough start.
2) A lot of people with lots of experience actually can't code for crap. Do you know how many python developers I see that don't know the difference between a tuple and list? Like, how could you be a real dev if you never even wondered why sometimes you use [] and sometimes you use ()?
3) These tests and interviews aren't intended for you to get some certain score. Usually we make them way hard to find out what you do to handle that.
4) That said, you should know how to write code that isn't super slow and with a data model that isn't insane. You should also know how to articulate that, since as a Senior dev, you WILL be mentoring junior devs, and communication is not optional.
5) Every company's process is different because every company is different. Heck, my process is often different per applicant.