mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Merged r4245 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4317 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
05432cfc3d
commit
a63c92388f
@ -8,6 +8,8 @@ class CalendarsController < ApplicationController
|
|||||||
helper :projects
|
helper :projects
|
||||||
helper :queries
|
helper :queries
|
||||||
include QueriesHelper
|
include QueriesHelper
|
||||||
|
helper :sort
|
||||||
|
include SortHelper
|
||||||
|
|
||||||
def show
|
def show
|
||||||
if params[:year] and params[:year].to_i > 1900
|
if params[:year] and params[:year].to_i > 1900
|
||||||
|
|||||||
@ -17,6 +17,16 @@ class CalendarsControllerTest < ActionController::TestCase
|
|||||||
assert_not_nil assigns(:calendar)
|
assert_not_nil assigns(:calendar)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context "GET :show" do
|
||||||
|
should "run custom queries" do
|
||||||
|
@query = Query.generate_default!
|
||||||
|
|
||||||
|
get :show, :query_id => @query.id
|
||||||
|
assert_response :success
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
def test_week_number_calculation
|
def test_week_number_calculation
|
||||||
Setting.start_of_week = 7
|
Setting.start_of_week = 7
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user