1 require File.dirname(__FILE__) + '/../../spec_helper'
3 describe Admin::BaseHelper do
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)
11 describe "calendar_date_select" do
13 subject {@object = Order.new() }
15 it "should return 'script' " do
16 helper.calendar_date_select(@object,:mthd,{},{}).index("script").should_not == nil
19 it "should return 'img'" do
20 helper.calendar_date_select(@object,:mthd,{},{}).index("img").should_not == nil
23 it "should return 'SelectCalendar.createOnLoaded'" do
24 helper.calendar_date_select(@object,:mthd,{},{}).index("SelectCalendar.createOnLoaded").should_not == nil