Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The spec needs to return outside of RSpec example in order to avoid

returning a failure.
  • Loading branch information...
commit bc587272d3a7c89f78ab1a19d7d219f17b8e7791 1 parent ca3eba2
@BanzaiMan BanzaiMan authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/regression/gh-299_env_with_nil_value_spec.rb
View
8 spec/regression/gh-299_env_with_nil_value_spec.rb
@@ -1,15 +1,15 @@
require 'rspec'
+# in 1.8, IO.popen does not take the first array as additional ENV.
+return if RUBY_VERSION =~ /\A1\.8/
+
describe "IO.popen" do
- context "with ENV with nil as value" do
+ context "with ENV which has nil as value" do
it "ignores the environment variable" do
env = {
"ANYTHING_NIL" => nil
}
- # in 1.8, IO.popen does not take the first array as additional ENV.
- return if RUBY_VERSION =~ /\A1\.8/
-
lambda {
IO.popen([env, 'true'], "r") do |x|
ENV.has_key?("ANYTHING_NIL").should be_false
Please sign in to comment.
Something went wrong with that request. Please try again.