RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

netzfisch — 3 posts

http://netzfisch.github.io

Authorisation is always an issue, have to be dealt carefully and often you start off with simple home made statements like user.admin?, etc. ... I had to switch from a custom solution to a solid community proofed and backed solution. Find here my synopsis on testing Pundit with Rspec.
I’m not coding that often, but when the exception happens I often end up with a ‘task’ and the knowledge that there is a better way to handle the source code - but I can’t remember!

Therefore I wrote a condensed cheat cheat with some plain and ordinarily commands, don’t expect fancy tricks as it is more a mnemonic for me. Instead of re-writing git man-pages I organized it by thinking in workflows … have a look here!
A short blog post with code examples about testing Sinatra 'helpers' with RSpec.