Sha256: b42def350860dd7bdf217174a3bd768a3ec488524ae834b0ef3ad3597e126154
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 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 '.extended' do subject do Class.new(ActiveRecord::Base) do extend 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jp_prefecture-0.1.0 | spec/jp_prefecture_spec.rb |