Sha256: 34f841d4b0286870e5a819630f258a529a2d0c45ceb35d956bf2adba7412198c
Contents?: true
Size: 438 Bytes
Versions: 3
Compression:
Stored size: 438 Bytes
Contents
require 'spec_helper' describe MadChatter do before(:each) do MadChatter.users = [] MadChatter.channels = [] end it 'should provide the ability to find a channel by name' do channel = MadChatter::Channel.new('My special room') MadChatter.channels << channel MadChatter.find_channel_by_name('My special room').should == channel MadChatter.find_channel_by_name('doesnt exist').should == nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.3.4 | spec/mad_chatter_spec.rb |
mad_chatter-0.3.3 | spec/mad_chatter_spec.rb |
mad_chatter-0.3.2 | spec/mad_chatter_spec.rb |