public
Fork of ndemonner/stone
Description: Plug-and-play data persistence created for small Ruby web applications.
Homepage: http://stone.rubyforge.org
Clone URL: git://github.com/juretta/stone.git
Search Repo:
stone / spec / string_spec.rb
100644 16 lines (13 sloc) 0.408 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require File.join(File.dirname(__FILE__), "spec_helper")
 
describe String do
  before(:all) do
    get_resources
    Stone.start(STONE_ROOT/"sandbox_for_specs", @resources)
  end
  
  it "should correctly form paths using /" do
    ("this"/"should"/"work").should == "this/should/work"
  end
  
  it "should make a proper key given a stringified class" do
    String.to_s.make_key.should == :string
  end
end