Last active
August 29, 2015 14:11
-
-
Save juno/536846c981ebff4b36e7 to your computer and use it in GitHub Desktop.
Using rspec-mocks spy. http://journal.sooey.com/254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'Qnyp::Episodes::CalculateEpisodeRatingSummary.process を呼び出す' do | |
user = FactoryGirl.create(:user) | |
expect(Qnyp::Episodes::CalculateEpisodeRatingSummary) | |
.to receive(:process) | |
.with(user) | |
get :show | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment