spec/invoker/invoker_spec.rb in invoker-1.2.0.pre1 vs spec/invoker/invoker_spec.rb in invoker-1.2.0.pre2
- old
+ new
@@ -17,11 +17,11 @@
it "should return false if setup command was not run" do
expect(Invoker.can_run_balancer?).to be_false
end
it "should return true if setup was run properly" do
- File.open(Invoker::Power::Config::CONFIG_LOCATION, "w") {|fl|
+ File.open(Invoker::Power::Config.config_file, "w") {|fl|
fl.write("hello")
}
expect(Invoker.can_run_balancer?).to be_true
end
@@ -57,8 +57,14 @@
expect(Dir.exist?(@config_location)).to be_true
new_config_file = File.join(@config_location, 'config')
expect(File.exist?(new_config_file)).to be_true
expect(File.read(new_config_file)).to match('invoker config')
end
+ end
+ end
+
+ describe "#home" do
+ it "should return home directory using etc module" do
+ expect(Invoker.home).to eql ENV['HOME']
end
end
end