Created
October 13, 2015 16:09
-
-
Save cgrusden/f447a6bfb51411568b91 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
module SlackMocks | |
class Client | |
end | |
class User | |
def initialize(user) | |
end | |
class Channel | |
end | |
end | |
module SlackMockHelpers | |
class UserFactory | |
def initialize(client) | |
@client = client | |
end | |
def add_user(name, email={}) | |
@client.channels.users << SlackMock::User.new(name: name, opts) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment