Sha256: 8e93574bb0190eb3b825d93b88b02c8fd3cb4734cc16f981a4992c09d6a3c04b

Contents?: true

Size: 376 Bytes

Versions: 7

Compression:

Stored size: 376 Bytes

Contents

require 'spec_helper'

describe RestPack::Service::Configuration do
  subject { RestPack::Service::Configuration.new }

  it "has a default table prefix" do
    subject.db_table_prefix.should == "restpack_"
  end

  describe ".prefix_db_table" do
    before { subject.db_table_prefix = 'prefix_' }
    it { subject.prefix_db_table('table').should == :prefix_table }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
restpack_service-0.0.33 spec/configuration_spec.rb
restpack_service-0.0.32 spec/configuration_spec.rb
restpack_service-0.0.31 spec/configuration_spec.rb
restpack_service-0.0.30 spec/configuration_spec.rb
restpack_service-0.0.29 spec/configuration_spec.rb
restpack_service-0.0.28 spec/configuration_spec.rb
restpack_service-0.0.27 spec/configuration_spec.rb