Sha256: 92bbb7f3f465377b70e6ffc403ae24604ffe7db9e159371383f588117988108b
Contents?: true
Size: 466 Bytes
Versions: 46
Compression:
Stored size: 466 Bytes
Contents
require 'minitest/autorun' require_relative '../lib/twiglet/message' describe Twiglet::Message do it 'returns a message hash from a string' do assert_equal Twiglet::Message.new('hello, world'), { message: 'hello, world' } end it 'returns a message hash with symbolized keys' do input_message = { 'key' => 'value', 'message' => 'hello, world' } assert_equal Twiglet::Message.new(input_message), { key: 'value', message: 'hello, world' } end end
Version data entries
46 entries across 46 versions & 1 rubygems