Skip to main content
  1. About
  2. Stack Internal
The 2026 Annual Developer Survey is live— take the Survey today!
some little changes.
Source Link
masukomi
  • 11.1k reputation score 11060
  • 10
  • 10 gold badges
  • 43
  • 43 silver badges
  • 50
  • 50 bronze badges

I'm working on a rails API and I'm now planning on writing some RSpec tests for the controllers. I've been reading around and I haven't been able to figure out what the actual difference between controller specs and request specs are and which one I should probably use if I'm testing an API.ˇ

I'm working on a rails API and I'm now planning on writing some RSpec tests for the controllers. I've been reading around and I haven't been able to figure out what the actual difference between controller specs and request specs are and which one I should probably use if I'm testing an API.ˇ

I'm working on a rails API and I'm now planning on writing some RSpec tests for the controllers. I've been reading around and I haven't been able to figure out what the actual difference between controller specs and request specs are and which one I should probably use if I'm testing an API.

israelor
  • 76 reputation score 76
  • 5
  • 5 bronze badges

I'm working on a rails API and I'm now planning on writing some rspecRSpec tests for the controllers. I've I've been reading around and I haventhaven't been able to figure out what the actual difference between controller specs and request specs are and which one I should probably use if I'm testing an API.ˇ

I'm working on a rails API and I'm now planning on writing some rspec tests for the controllers. I've been reading around and I havent been able to figure out what the actual difference between controller specs and request specs are and which one I should probably use if I'm testing an API.

I'm working on a rails API and I'm now planning on writing some RSpec tests for the controllers. I've been reading around and I haven't been able to figure out what the actual difference between controller specs and request specs are and which one I should probably use if I'm testing an API.ˇ

Source Link
jsanch16
  • 659 reputation score 659
  • 2
  • 2 gold badges
  • 8
  • 8 silver badges
  • 9
  • 9 bronze badges

Controller Specs vs Request Specs?

I'm working on a rails API and I'm now planning on writing some rspec tests for the controllers. I've been reading around and I havent been able to figure out what the actual difference between controller specs and request specs are and which one I should probably use if I'm testing an API.

lang-rb
Morty Proxy This is a proxified and sanitized view of the page, visit original site.