Created
April 26, 2018 16:23
-
-
Save justinperkins/137ac23766e07d1e8afdc586747e5034 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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