RSpec tips #2

RSpec and state_machine gem

Thales Oliveira
coding breeze
1 min readApr 8, 2016

--

Wanna test some `after_transition` or `before_transition` code from your models on RSpec without super complicated mocks and stubs? Worry no more, here’s the real deal!

Now go test some transitions!

--

--