Sha256: 75c9ff03bf8dc9718d36644830fa34acd0c8f6e5e745c75656d1e6604023354a

Contents?: true

Size: 392 Bytes

Versions: 5

Compression:

Stored size: 392 Bytes

Contents

# coding: utf-8
require 'spec_helper'

describe JpPrefecture do
  describe '.included' do
    subject do
      Class.new(ActiveRecord::Base) do
        include JpPrefecture
      end
    end

    it { should respond_to(:jp_prefecture) }
  end

  describe 'include されていない' do
    subject { Class.new(ActiveRecord::Base) }
    it { should_not respond_to(:jp_prefecture) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jp_prefecture-0.3.2 spec/jp_prefecture_spec.rb
jp_prefecture-0.3.1 spec/jp_prefecture_spec.rb
jp_prefecture-0.3.0 spec/jp_prefecture_spec.rb
jp_prefecture-0.2.0 spec/jp_prefecture_spec.rb
jp_prefecture-0.1.1 spec/jp_prefecture_spec.rb