Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root825575y@AlgoRythm I suppose that would look strange to non-Railsy devs. Enumerable#last returns the last element of e.g. an array, or in this case, the last record from the Periodic::Payment model. So it is calling the #agent_authorization= setter on an instance of the class.
Still no clue why it isn't working in the test env 😕 -
What the fuck is that even supposed to mean.
This is worse error logging than in c(forgot the compiler name) -
fuckwit12185y@Ranchu quite ez it says that this instance of this object does not have a method with that name.
-
fuckwit12185y@Ranchu that's the objects ID ruby assigns to an object. Rspec does some fancy stuff with that.
Related Rants
-
mcraz17Someone advised him that WP runs faster on Ruby. Now, he wants me to port WordPress to RubyOnRails !!!
-
ausername3Just solved a bug I was trying to solve for hours. Oh, the pleasure of closing 12 tabs at once without wanting...
-
vedipen19Elon Musk makes a front end website containing a single alphabet in html and everyone loses their mind. Meanwh...
RSpec:
Undefined method 'agent_authorization=' for #<Periodic::Payment:0x000000C0FFEE>
Rails Console:
> Periodic::Payment.last.agent_authorization = "PPD"
=> "PPD"
> puts "Hmmm."
=> "Hmmm."
rant
oh rails you drunk
rspec
i've spent two hours on this already
rails
too tired for your shenanigans