Sha256: bc3de88cd9b4391f71c02855ec699f3f856dc6dd6082a06f721bd69f720d61de
Contents?: true
Size: 945 Bytes
Versions: 4
Compression:
Stored size: 945 Bytes
Contents
require 'spec_helper' describe Storey, "#schema" do it "should return the current schema" do Storey.schema.should == %{"$user",public} end context "array: true" do it "returns it as an array of strings" do expect(Storey.schema(array: true)).to eq %w("$user" public) end end context "when a suffix is set" do before do Storey.configuration.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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
storey-2.2.0 | spec/storey/schema_spec.rb |
storey-2.1.2 | spec/storey/schema_spec.rb |
storey-2.1.1 | spec/storey/schema_spec.rb |
storey-2.1.0 | spec/storey/schema_spec.rb |