Skip to content

Commit

Permalink
update Levels::Merged to Levels::Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarver committed Dec 30, 2012
1 parent 3e4035c commit da9e5c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/config/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.new(name = nil)

# Internal: Create a merge from one or more configuration levels.
def self.merge(*levels)
merged = Levels::Merged.new(levels)
merged = Levels::Configuration.new(levels)
merged.event_handler = EventHandler.new
merged
end
Expand Down
2 changes: 1 addition & 1 deletion lib/config/spy/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Configuration
include Config::Configuration::MethodMissing

# A subclass of normal merge so that it's identifiable.
class SpyMerged < Levels::Merged
class SpyMerged < Levels::Configuration
def initialize(spy, *levels)
super levels + [spy]
end
Expand Down
2 changes: 1 addition & 1 deletion test/config/configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
end

specify ".merge" do
Config::Configuration.merge([]).must_be_instance_of Levels::Merged
Config::Configuration.merge([]).must_be_instance_of Levels::Configuration
end

describe "logging" do
Expand Down
4 changes: 2 additions & 2 deletions test/config/project_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

describe "with a cluster" do

let(:assigned_configuration_class) { Levels::Merged }
let(:assigned_configuration_class) { Levels::Configuration }
let(:assigned_cluster_context_class) { Config::ClusterContext }

before do
Expand Down Expand Up @@ -92,7 +92,7 @@

let(:node) { Config::Node.new("production", "webserver", "1") }

let(:assigned_configuration_class) { Levels::Merged }
let(:assigned_configuration_class) { Levels::Configuration }
let(:assigned_cluster_context_class) { Config::ClusterContext }

before do
Expand Down

0 comments on commit da9e5c2

Please sign in to comment.