Sha256: 24347a02fc7441d811bf853d2561158bbc908033b833d31a8fb905df65caa996

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

require 'avm/git/auto_commit_path'

RSpec.describe ::Avm::Git::AutoCommitPath, git: true do
  let(:git) { stubbed_git_local_repo }

  describe '#class_name' do
    {
      'app/models/mynamespace/the_class.rb' => 'Mynamespace::TheClass',
      'lib/ruby/lib/cliutils/eac_redmine_base0/activity.rb' => 'Cliutils::EacRedmineBase0::Activity'
    }.each do |path, expected_class_name|
      context "when path is \"#{path}\"" do
        let(:instance) { described_class.new(git, "#{git}/#{path}") }

        it { expect(instance.class_name).to eq(expected_class_name) }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avm-tools-0.105.0 vendor/avm/spec/lib/avm/git/auto_commit_path_spec.rb
avm-tools-0.104.0 vendor/avm/spec/lib/avm/git/auto_commit_path_spec.rb