Sha256: f06037f2fecb7ea653ddffcd9ceb54ae8385e4deb3c8d327d727e4e35e25d49b

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

# coding: utf-8
require 'spec_helper'

describe JpPrefecture::Configuration do
  before do
    @model_class = Class.new(ActiveRecord::Base) do
      self.abstract_class = true
    end
  end

  describe '#initialize' do
    describe 'モデルクラスについて' do
      before { @config = JpPrefecture::Configuration.new(@model_class) }
      it { @config.model_class.should eq @model_class }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jp_prefecture-0.1.0 spec/lib/configuration_spec.rb