Permalink
Browse files

Fix 1.8.7 in cuke land too

  • Loading branch information...
1 parent 9ab2bf2 commit 2baef5d1553077e1a73df7164428fc940ba7fd5e @bensie bensie committed Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/step_definitions/general_steps.rb
@@ -13,7 +13,7 @@
@klass.class_eval do
define_method(:upcase) do
content = File.read(current_path)
- File.write(current_path, content.upcase)
+ File.open(current_path, 'w') { |f| f.write content.upcase }
end
end
end

0 comments on commit 2baef5d

Please sign in to comment.