Unit Testing Rails Models (Test Driven RSpec, Ep 04)

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 13

  • @brettcodes
    @brettcodes  7 ปีที่แล้ว +1

    Here are the timestamps for the core concepts in this episode since they are fairly discrete:
    - Creating a Console model (0:45)
    - Testing model validations (3:28)
    - Testing model methods (12:17)
    - Testing model scopes (15:12)
    - Refactoring the consoles array of hashes into database queries (20:12)

  • @JonnyMarshall5
    @JonnyMarshall5 4 ปีที่แล้ว +4

    Thanks so much for these videos. I even saw a course on a premium (paid) online learning platform, and it's not a patch on this video series!

  • @1936Dany
    @1936Dany 5 ปีที่แล้ว +1

    Great stuff, thank you!

  • @BruceLee-rr5xe
    @BruceLee-rr5xe 5 ปีที่แล้ว

    @21:38 why are you using vim?

    • @brettcodes
      @brettcodes  3 ปีที่แล้ว

      lol! Good point. At this time I don't think I knew how to quickly do this. I might be closer now, three years later, but I guess we'll have to see in a future screencast.

  • @qazisahab8406
    @qazisahab8406 5 ปีที่แล้ว

    Your videos are very helpful to build initial confidence and know how with TDD, but i think mostly issue with people who hve nto worked in TDD and want to switch over to TDD is mostly in planning phase, like they have a requirement of a full feature, how do they go about doing TDD while what they are used to is to build a proof of concept logic first, than refactor it to the point it is production ready and than write tests, vs doing TDD in such scenario...

    • @brettcodes
      @brettcodes  3 ปีที่แล้ว +1

      This is really helpful feedback, thank you. It seems like a video where I drive out a non-trivial feature for an app would be useful. I'll add that to the list of videos I'd like to make. A lot of what's in this series is pretty trivial and manufactured, so it'd be nice to have a more thorough example.

  • @patrykgramatowski702
    @patrykgramatowski702 3 ปีที่แล้ว

    Awesome!

    • @brettcodes
      @brettcodes  3 ปีที่แล้ว

      Thanks, I appreciate it!

  • @kleinesmaccify
    @kleinesmaccify 5 ปีที่แล้ว +1

    Fine piece, but the continous keyboard clicking is catastrophic...

    • @brettcodes
      @brettcodes  3 ปีที่แล้ว

      I'll try to see if I can at least reduce the noise of it for future videos. I appreciate the feedback!

    • @al-mokhtar_
      @al-mokhtar_ 3 ปีที่แล้ว +1

      *seriously!! the lad spend hours recording and editing videos for free then you show up tell him how catastrophic the keyboard just what kind of human you are !!*

    • @kleinesmaccify
      @kleinesmaccify 3 ปีที่แล้ว

      @@al-mokhtar_ so there are two catastrophic things: keyboard clicking and me :)