Skip to content

Instantly share code, notes, and snippets.

@justinperkins
Created April 26, 2018 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinperkins/137ac23766e07d1e8afdc586747e5034 to your computer and use it in GitHub Desktop.
Save justinperkins/137ac23766e07d1e8afdc586747e5034 to your computer and use it in GitHub Desktop.
require 'test_helper'
class ServiceTest < ActiveSupport::TestCase
def setup
super
@klass = Class.new do
include Service
def initialize(params) end
def run; end
end
end
test 'should run the class' do
@klass.any_instance.expects(:run)
@klass.run('hi')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment