spec/spec.display.rb in display-0.1.0 vs spec/spec.display.rb in display-0.1.1
- old
+ new
@@ -1,5 +1,6 @@
+require 'rubygems'
require 'sane'
require_rel '../lib/display'
require 'spec/autorun'
describe "display" do
@@ -17,12 +18,12 @@
it "should add spacing appropriately with commas" do
assert @output.contain?(", ")
end
- it "should show linenumber too" do
- assert @output.contain?(",10")
+ it "should show linenumber too" do
+ assert @output.contain?(",11")
end
it "should retrieve call nodes for ya" do
for string in ["c = display a, b", "display a, b"] do
parser=RedParse.new(string)
@@ -34,7 +35,13 @@
end
it "shouldn't barf with more complex things" do
output = display 3, 4+5
end
+
+ it "should work with longer dir names in 1.8" do
+ require 'sub/go2'
+ end
+
+ it "should cache lines instead of rereading the file each time"
end
\ No newline at end of file