Sha256: e6740e46e43f127496b67e93202fa60ce408737589d1bd6aaad0a32ec98533fc

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'

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

  it "has defaults" do
    subject.db_table_prefix.should == "restpack_"
    subject.application_id.should == 1
  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

2 entries across 2 versions & 1 rubygems

Version Path
restpack_service-0.0.35 spec/configuration_spec.rb
restpack_service-0.0.34 spec/configuration_spec.rb