Skip to content

Instantly share code, notes, and snippets.

@aldesantis
Created August 23, 2014 09:47
Show Gist options
  • Save aldesantis/e4efc3089b81015b8d83 to your computer and use it in GitHub Desktop.
Save aldesantis/e4efc3089b81015b8d83 to your computer and use it in GitHub Desktop.
require 'rails_helper'
RSpec.describe Processable do
# ...
describe '#mark_as_processed!' do
it 'updates the processed column to true' do
subject
.expects(:update_column)
.with(:processed, true)
.once
.returns(true)
subject.mark_as_processed!
end
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment