summaryrefslogtreecommitdiff
path: root/spec/ruby/library/syslog/facility_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/syslog/facility_spec.rb')
-rw-r--r--spec/ruby/library/syslog/facility_spec.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/ruby/library/syslog/facility_spec.rb b/spec/ruby/library/syslog/facility_spec.rb
index 02ea754b6b..79a685c201 100644
--- a/spec/ruby/library/syslog/facility_spec.rb
+++ b/spec/ruby/library/syslog/facility_spec.rb
@@ -1,16 +1,17 @@
+require_relative '../../spec_helper'
+
platform_is_not :windows do
- require File.expand_path('../../../spec_helper', __FILE__)
require 'syslog'
describe "Syslog.facility" do
platform_is_not :windows do
before :each do
- Syslog.opened?.should be_false
+ Syslog.opened?.should == false
end
after :each do
- Syslog.opened?.should be_false
+ Syslog.opened?.should == false
end
it "returns the logging facility" do
@@ -20,7 +21,7 @@ platform_is_not :windows do
end
it "returns nil if the log is closed" do
- Syslog.opened?.should be_false
+ Syslog.opened?.should == false
Syslog.facility.should == nil
end