diff --git a/library/logger/device/close_spec.rb b/library/logger/device/close_spec.rb index d7d107fcce..7c5e118d56 100644 --- a/library/logger/device/close_spec.rb +++ b/library/logger/device/close_spec.rb @@ -15,14 +15,14 @@ rm_r @file_path end - ruby_version_is ""..."2.7" do + version_is Logger::VERSION, ""..."1.4.0" do it "closes the LogDevice's stream" do @device.close -> { @device.write("Test") }.should complain(/\Alog writing failed\./) end end - ruby_version_is "2.7" do + version_is Logger::VERSION, "1.4.0" do it "closes the LogDevice's stream" do @device.close -> { @device.write("Test") }.should complain(/\Alog shifting failed\./) diff --git a/library/logger/device/write_spec.rb b/library/logger/device/write_spec.rb index 5506bb2c38..cd2d7e27a9 100644 --- a/library/logger/device/write_spec.rb +++ b/library/logger/device/write_spec.rb @@ -35,14 +35,14 @@ rm_r path end - ruby_version_is ""..."2.7" do + version_is Logger::VERSION, ""..."1.4.0" do it "fails if the device is already closed" do @device.close -> { @device.write "foo" }.should complain(/\Alog writing failed\./) end end - ruby_version_is "2.7" do + version_is Logger::VERSION, "1.4.0" do it "fails if the device is already closed" do @device.close -> { @device.write "foo" }.should complain(/\Alog shifting failed\./)