test/unit/test_extensions.rb in spontaneous-0.1.0.alpha1 vs test/unit/test_extensions.rb in spontaneous-0.2.0.alpha1

- old
+ new

@@ -1,14 +1,20 @@ # encoding: UTF-8 -require 'test_helper' +require File.expand_path('../../test_helper', __FILE__) class ExtensionsTest < MiniTest::Spec context "String" do should "create paths with String#/" do ("this" / "that").should == "this/that" ("/this" / "/that").should == "/this/that" + end + end + + context "Nil" do + should "always return the argument for the slash switch" do + (nil / "something").should == "something" end end end