spec/miu/messages/base_spec.rb in miu-0.2.0 vs spec/miu/messages/base_spec.rb in miu-0.2.1

- old
+ new

@@ -30,11 +30,11 @@ its(:type) { should eq 'type' } its(:content) { should eq 'content' } end end - describe '#to_hash' do - let(:hash) { Miu::Messages::Base.new(:type => 'test').to_hash } + describe '#to_h' do + let(:hash) { Miu::Messages::Base.new(:type => 'test').to_h } it { expect(hash).to be_instance_of ::Hash } it { expect(hash).to have_key :network } it { expect(hash).to have_key :type } it { expect(hash).to have_key :content }