public
Description: Plug-and-play data persistence created for small Ruby web applications.
Homepage: http://stone.rubyforge.org
Clone URL: git://github.com/ndemonner/stone.git
Search Repo:
stone / spec / symbol_spec.rb
100644 16 lines (13 sloc) 0.44 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 Symbol do
  before(:all) do
    get_resources
    Stone.start(STONE_ROOT/"sandbox_for_specs", @resources)
  end
  
  it "should return a correct Query when a comparison method is used" do
    :name.gt.should be_instance_of(Stone::Query)
    :name.gt.op.should == ".>"
    
    :name.matches.should be_instance_of(Stone::Query)
    :name.matches.op.should == ".=~"
  end
end