Sha256: c912d0fc7ff72739bc50fb49538a5d17ae973bc5b0f561fd3cfb3aa2f9246ac6
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
# require 'spec_helper' # # describe MadChatter::Users do # # it 'should have a well-known interface' do # [:users, :add, :update, :remove, :find_username_by_token, :current, :token_exists?].each do |m| # MadChatter::Users.should respond_to(m) # end # end # # it 'should store users and their usernames' do # MadChatter::Users.add 'token1', 'username1' # MadChatter::Users.add 'token2', 'username2' # MadChatter::Users.current.should == ['username1', 'username2'] # end # # it 'should encode into JSON correctly' do # MadChatter::Users.add 'token1', 'username1' # MadChatter::Users.add 'token2', 'username2' # MadChatter::Users.to_json.should == '{"type":"users","json":["username1","username2"]}' # end # # end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.3.1 | spec/users_spec.rb |
mad_chatter-0.3.0 | spec/users_spec.rb |