Sha256: 1603c2b256903516dd9fc411d95b4a49dd810842a286784f14f4be5438f2a53b

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

# encoding: utf-8

require File.expand_path('../../spec_helper.rb', __FILE__)

describe Backup::Syncer::Base do
  let(:base)    { Backup::Syncer::Base }
  let(:syncer)  { base.new }

  it 'should include CLI::Helpers' do
    base.included_modules.should include(Backup::CLI::Helpers)
  end

  it 'should include Configuration::Helpers' do
    base.included_modules.should include(Backup::Configuration::Helpers)
  end

  describe '#syncer_name' do
    it 'should return the class name with the Backup:: namespace removed' do
      syncer.send(:syncer_name).should == 'Syncer::Base'
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
backup_checksum-3.0.23 spec/syncer/base_spec.rb
backup-3.0.23 spec/syncer/base_spec.rb
backup-3.0.22 spec/syncer/base_spec.rb
backup-3.0.21 spec/syncer/base_spec.rb