OSDN Git Service

管理画面の日付検索をjavascrptのカレンダーで
[elecoma/elecoma.git] / spec / helpers / admin / base_helper_spec.rb
1 require File.dirname(__FILE__) + '/../../spec_helper'
2
3 describe Admin::BaseHelper do
4
5   #Delete this example and add some real ones or delete this file
6   it "should include the Admin::BaseHelper" do
7     included_modules = (class << helper; self; end).send :included_modules
8     included_modules.should include(Admin::BaseHelper)
9   end
10   
11   describe "calendar_date_select" do  
12     
13     subject {@object = Order.new() }
14
15     it "should return 'script' " do
16       helper.calendar_date_select(@object,:mthd,{},{}).index("script").should_not == nil
17     end
18
19     it "should return 'img'" do
20       helper.calendar_date_select(@object,:mthd,{},{}).index("img").should_not == nil
21     end
22
23     it "should return 'SelectCalendar.createOnLoaded'" do
24       helper.calendar_date_select(@object,:mthd,{},{}).index("SelectCalendar.createOnLoaded").should_not == nil
25     end
26
27   end
28 end