Sha256: 44b8608ff0114cc35255f1a8170b18c3a77601ddd9a9b2e1c908d30174c560ce
Contents?: true
Size: 777 Bytes
Versions: 17
Compression:
Stored size: 777 Bytes
Contents
require 'spec_helper' describe Storey, "#schema" do it "should return the current schema" do Storey.schema.should == %{"$user",public} end context "when a suffix is set" do before do Storey.suffix = "_rock" Storey.create "hello" Storey.switch "hello" end it "should return the schema without the suffix by default" do Storey.schema.should == "hello" end context "when :suffix => true" do it "should return the schema with the suffix" do Storey.schema(:suffix => true).should include("hello_rock") end end context "when :suffix => false" do it "should return the schema without the suffix" do Storey.schema(:suffix => false).should include("hello") end end end end
Version data entries
17 entries across 17 versions & 1 rubygems