Created
April 6, 2010 18:40
-
-
Save adamhunter/357930 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe Ripple::Document::Finders do | |
| include Fixtures::Finders # Box is defined in this module | |
| before :each do | |
| @http = mock("HTTP Backend") | |
| @client = Ripple.client | |
| @client.stub!(:http).and_return(@http) | |
| @bucket = Riak::Bucket.new(@client, "boxes") | |
| @client.stub!(:[]).and_return(@bucket) | |
| end | |
| # we would like Box to be local here | |
| it "should return an empty array if no keys are passed to find" do | |
| Box.find().should be_nil | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment