require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Spectate::Spectator do it "fails without a path" do lambda{Spectate::Spectator.new(nil)}.should raise_error(Spectate::CreationError) end it "fails if the parent doesn't exist" do pending Spectate::Spectator.clear_all! lambda{Spectate::Spectator.new("/foo")}.should raise_error(Spectate::CreationError) end describe "root node" do it "creates the Spectator tree if it didn't already exist" do pending end end end