Sha256: 53ddab61b7d1275ad5faf1e97da6faa7668cacafd8b0e5add6ae454548ea8da5
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
require 'spec_helper' describe Ripple::Document::BucketAccess do # require 'support/models/invoice' # require 'support/models/late_invoice' # require 'support/models/paid_invoice' it "should use the plural model name as the bucket name" do Invoice.bucket_name.should == "invoices" end it "should use the parent bucket name by default (SBI)" do LateInvoice.bucket_name.should == "invoices" end it "should allow a class to set the bucket name" do PaidInvoice.bucket_name.should == "paid" end it "should allow access to the bucket" do Invoice.bucket.should be_kind_of(Riak::Bucket) Invoice.bucket.client.should == Ripple.client Invoice.bucket.name.should == "invoices" end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
wyngle-ripple-0.1.0 | spec/ripple/bucket_access_spec.rb |
ripple-1.0.0.beta2 | spec/ripple/bucket_access_spec.rb |
ripple-1.0.0.beta | spec/ripple/bucket_access_spec.rb |