Skip to content

Instantly share code, notes, and snippets.

@adamhunter
Created April 6, 2010 18:40
Show Gist options
  • Select an option

  • Save adamhunter/357930 to your computer and use it in GitHub Desktop.

Select an option

Save adamhunter/357930 to your computer and use it in GitHub Desktop.
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