Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
three word chant
@3wordchant@social.coop  路  activity timestamp last week

Filled with regret I didn't save my ornate vim macros to convert #Rails deprecated finder methods into the current ones 馃槶

  • Copy link
  • Flag this post
  • Block
three word chant
@3wordchant@social.coop replied  路  activity timestamp last week

Search query "rails jobs worker"

馃 Including results for railroad jobs employment

I mean, maybe?

  • Copy link
  • Flag this comment
  • Block
three word chant
@3wordchant@social.coop replied  路  activity timestamp 4 days ago

Right, after some much-needed rest, Back 2 Levelfly

#Ruby #Rails

  • Copy link
  • Flag this comment
  • Block
three word chant
@3wordchant@social.coop replied  路  activity timestamp 4 days ago

Some updates from the last few days:

  • Copy link
  • Flag this comment
  • Block
three word chant
@3wordchant@social.coop replied  路  activity timestamp 4 days ago

#RSpec interactive debugging with #Neovim: I tried a lot, I failed a lot.

I got this working for other languages ( #Python and #CSharp) and it was a HUGE help, taking away one of the main things I need to leave my editor for.

But something is blowing up and I'm still relatively new to Neotest, DAP, and the various plumbing between them and the test runners.

  • Copy link
  • Flag this comment
  • Block
three word chant
@3wordchant@social.coop replied  路  activity timestamp 4 days ago

I'm liking how the #RSpec tests are shaping up overall though.

I'd be really interested to get some review from someone with more experience; I did find a few examples of "request" specs (which is the main layer I've decided to start with) around, but there seem to be several different taste preferences going on.

So far, having a "context" for each combination of HTTP verb + endpoint is working out reasonably, and then separate blocks to test unauthenticated / unauthorised / success

  • Copy link
  • Flag this comment
  • Block
three word chant
@3wordchant@social.coop replied  路  activity timestamp 4 days ago

One downside of setting myself the stretch goal of "adding #RSPec tests for all URL routes" is that there are a LOT of them 馃槄

(`rails routes` says 303)

This is of course making this task take forever (~15 hours' work to improve test coverage from ~40% to ~65%).

But, more also-importantly, it's ruining my "lines of code deleted" metric, I have added over 2000 lines of specs alone 馃檲

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.0-rc.3.1 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login