OSDN Git Service

t#29400:itr3?
[pettanr/pettanr.git] / spec / controllers / ground_pictures_controller_spec.rb
index e150928..9f1c798 100644 (file)
@@ -73,6 +73,10 @@ describe GroundPicturesController do
           get :index, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
+        it 'コマの画像背景モデルにjson一覧出力オプションを問い合わせている' do
+          GroundPicture.should_receive(:list_json_opt).exactly(1)
+          get :index, :format => :json
+        end
         it 'データがリスト構造になっている' do
           get :index, :format => :json
           json = JSON.parse response.body