Sha256: 3b16ae2b1d6b6790741aa589dcd2520ce3ea7193698856d083a2f1de675c20d2

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

# coding: utf-8
require 'spec_helper'

describe JpPrefecture::Base do
  describe '#jp_prefecture' do
    before do
      @model_class = Class.new(ActiveRecord::Base) do
        self.abstract_class = true
        include JpPrefecture
        jp_prefecture 'aiueo'
      end
    end

    it { @model_class.jp_prefecture_config.column_name.should eq :aiueo }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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