Sha256: 7928d51c0822d0a1029b11cf727d754c1cd0c813fff6c08fca2bba1e4bc97117
Contents?: true
Size: 719 Bytes
Versions: 7
Compression:
Stored size: 719 Bytes
Contents
require 'rails_helper' require 'byebug' RSpec.describe Admin::GitHandler, type: :services do context 'Git Handler' do let(:git) { Admin::GitHandler.new } context 'git is installed?' do it { expect(git.installed?).to be_in([true, false]) } end context 'git current branch name' do it { expect(git.current_branch).to be_a(String) } it { expect(git.current_branch).not_to eq(false) } end context 'git changes count' do it { expect(git.changes_count).to be_a(Hash) } it { expect(git.changes_count[:changes]).to be_a(String) } it { expect(git.changes_count[:color]).to be_a(String) } it { expect(git.changes_count).not_to eq(false) } end end end
Version data entries
7 entries across 7 versions & 1 rubygems