Sha256: 2307b7b6efda46b11e002354f05a7a6348f3e1f9fbc47347a9c78c69a841ed69

Contents?: true

Size: 887 Bytes

Versions: 33

Compression:

Stored size: 887 Bytes

Contents

=begin
require 'test_helper'

class CalendarControllerTest < Zena::Controller::TestCase

  def test_show_date
    get 'show', :date=>Date.civil(2006,11,1).to_s, :size=>'tiny', :id=>nodes_id(:zena), :find=>'news'
    assert_response :success
    assert_match %r{tinycal.*class='sun'><p>19}m, @response.body
  end

  def test_open_cal
    get 'open', :date=>Date.civil(2006,11,1).to_s, :size=>'large', :id=>nodes_id(:zena), :find=>'news'
    assert_response :success
    assert_match %r{\$\('notes'\).style.display.*none}, @response.body
    assert_match %r{largecal.*class='sun'><p>19}m, @response.body
    assert_match %r{\$\('tinycal'\).style.visibility.*hidden}, @response.body
    assert_match %r{\$\('tinycal_close'\).style.visibility.*visible}, @response.body
    assert_match %r{\$\('largecal'\).style.display.*block}, @response.body
  end

  def test_date_selection
  end
end
=end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
zena-1.2.8 test/functional/calendar_controller_test.rb
zena-1.2.7 test/functional/calendar_controller_test.rb
zena-1.2.6 test/functional/calendar_controller_test.rb
zena-1.2.5 test/functional/calendar_controller_test.rb
zena-1.2.4 test/functional/calendar_controller_test.rb
zena-1.2.3 test/functional/calendar_controller_test.rb
zena-1.2.2 test/functional/calendar_controller_test.rb
zena-1.2.1 test/functional/calendar_controller_test.rb
zena-1.2.0 test/functional/calendar_controller_test.rb
zena-1.1.3 test/functional/calendar_controller_test.rb
zena-1.1.2 test/functional/calendar_controller_test.rb
zena-1.1.1 test/functional/calendar_controller_test.rb
zena-1.1.0 test/functional/calendar_controller_test.rb
zena-1.0.0 test/functional/calendar_controller_test.rb
zena-1.0.0.rc3 test/functional/calendar_controller_test.rb
zena-1.0.0.rc2 test/functional/calendar_controller_test.rb
zena-1.0.0.rc1 test/functional/calendar_controller_test.rb
zena-0.16.9 test/functional/calendar_controller_test.rb
zena-1.0.0.beta3 test/functional/calendar_controller_test.rb
zena-0.16.8 test/functional/calendar_controller_test.rb