Sha256: e7f62c4a9f1494a7b566aad678935180a2a728eac94e7f4e9c67d824d1f5f273
Contents?: true
Size: 688 Bytes
Versions: 77
Compression:
Stored size: 688 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 |relative_path, expected_class_name| context "when path is \"#{relative_path}\"" do let(:path) { git.root_path.join(relative_path) } let(:instance) { described_class.new(git, path) } it { expect(instance.class_name).to eq(expected_class_name) } end end end end
Version data entries
77 entries across 77 versions & 2 rubygems