spec/invoker/power/config_spec.rb in invoker-1.2.0.pre2 vs spec/invoker/power/config_spec.rb in invoker-1.2.0
- old
+ new
@@ -4,10 +4,10 @@
describe "#create" do
it "should create a config file given a hash" do
config = Invoker::Power::Config.create(
dns_port: 1200, http_port: 1201, ipfw_rule_number: 010
)
- expect(File.exist?(Invoker::Power::Config.config_file)).to be_true
+ expect(File.exist?(Invoker::Power::Config.config_file)).to be_truthy
config = Invoker::Power::Config.load_config()
expect(config.dns_port).to eq(1200)
expect(config.http_port).to eq(1201)
expect(config.ipfw_rule_number).to eq(010)