Skip to content
This repository

Added spec for File::NULL #160

Merged
merged 1 commit into from over 1 year ago

2 participants

Jesse Storimer NARUSE, Yui
Jesse Storimer

This is my first time contributing a spec. I followed others as best I could, let me know how to improve it.

Jesse Storimer jstorimer referenced this pull request in rubinius/rubinius November 08, 2012
Merged

Implement File::NULL #1994

NARUSE, Yui nurse merged commit b2f1a50 into from November 08, 2012
NARUSE, Yui nurse closed this November 08, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Nov 08, 2012
Jesse Storimer Add spec for File::NULL f9419ac
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 18 additions and 0 deletions. Show diff stats Hide diff stats

  1. 18  core/file/null_spec.rb
18  core/file/null_spec.rb
... ...
@@ -0,0 +1,18 @@
  1
+require File.expand_path('../../../spec_helper', __FILE__)
  2
+
  3
+describe "File::NULL" do
  4
+  ruby_version_is "1.9" do
  5
+    platform_is :windows do
  6
+      it "returns NUL as a string" do
  7
+        File::NULL.should == 'NUL'
  8
+      end
  9
+    end
  10
+
  11
+    platform_is_not :windows do
  12
+      it "returns /dev/null as a string" do
  13
+        File::NULL.should == '/dev/null'
  14
+      end
  15
+    end
  16
+  end
  17
+end
  18
+
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.