spec/unit/config_spec.rb in resque-cluster-0.2.2 vs spec/unit/config_spec.rb in resque-cluster-0.2.3

- old
+ new

@@ -32,12 +32,11 @@ rebalance_flag: true, presume_host_dead_after: 60, max_workers_per_host: 10, cluster_name: "unit-test-cluster", environment_name: "unit-test", - manage_worker_heartbeats: true, - version_hash: `git rev-parse --verify HEAD`.strip + manage_worker_heartbeats: true } end context 'old style' do let(:config_path) { support_dir + 'valid_single_old_config.yml' } @@ -118,25 +117,20 @@ rebalance_flag: false, presume_host_dead_after: 120, max_workers_per_host: nil, cluster_name: "unit-test-cluster", environment_name: "unit-test", - manage_worker_heartbeats: true, - version_hash: `git rev-parse --verify HEAD`.strip + manage_worker_heartbeats: true } end it_behaves_like 'a valid config' it "config should have no warnings or errors" do expect(config.errors.count).to eql(0) expect(config.warnings.count).to eql(0) end - - it "git_version_hash should be set" do - expect(config.version_git_hash).to eql(`git rev-parse --verify HEAD`.strip) - end end context 'with a missing local maximum' do let(:config) { Resque::Cluster::Config.new(local_config_path, global_config_path) } let(:local_config_path) { support_dir + 'separate_missing_local.yml' } @@ -182,13 +176,9 @@ "#{local_config_path}: Configuration file doesn't exist") end it "gru_format should return a an empty hash" do expect(config.gru_format).to eql(correct_hash) - end - - it "git_version_hash should not be set" do - expect(config.version_git_hash).to be_nil end end end end