Sha256: 284fa8d86b9b1661d390816abe499838964f31780d550f3a637dcfb7cb39d10d
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
# encoding: utf-8 class FlexturesHookTest < Test::Unit::TestCase context Flextures::Loader do context ".parse_flextures_options" do context "通常動作" do setup do @ret = Flextures::Loader.parse_flextures_options(:users) end should "指定したテーブル分だけハッシュが返されている" do assert_equal 1, @ret.size end should "ハッシュの中身は読み込み設定のハッシュ" do h = { table: :users, file: :users, loader: :fun } assert_equal h, @ret.first end end context "違うファイルをロードした時" do setup do @ret = Flextures::Loader.parse_flextures_options( :users => :users_another3 ) end should "指定したテーブル分だけハッシュが返されている" do assert_equal 1, @ret.size end should "ハッシュの中身は読み込み設定のハッシュ" do h = { table: :users, file: :users_another3, loader: :fun } assert_equal h, @ret.first end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flextures-2.0.3 | test/unit/test_flextures_hooks.rb |