Edit

thodg/mpd_client/spec/mpd_client

Branch :

  • Show log

    Commit

  • Author : Anton Maminov
    Date : 2018-07-31 17:31:06
    Hash : 141cc085
    Message : Rename MPDClient to MPD::Client (#6) * Rename MPDClient to MPD::Client * remove redundants return * Avoid single-line method definitions * nothing special * update readme * add idle example * add rubocop * add .hound.yml * add travis config * add badges to readme * remove rakefile * add rake * revert rakefile * ichange gemspec * add rspec * change travis config * remove rakefile * remove rack-test * add spec * add test * fix rubocop * update badges

  • mpd_client_spec.rb
  • # frozen_string_literal: true
    
    require 'spec_helper'
    
    describe MPD::Client do
      it 'should have version' do
        expect(MPD::Client::VERSION).to_not be_nil
      end
    
      describe '#initialize' do
        it 'should create new client' do
          client = MPD::Client.new
    
          expect(client.connected?).to eq(false)
        end
      end
    end