Removed some shoulda context.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11439 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-18 17:30:11 +00:00
parent 58c643b420
commit b0de1b1908
1 changed files with 8 additions and 11 deletions

View File

@ -26,13 +26,20 @@ class CalendarsControllerTest < ActionController::TestCase
:members,
:enabled_modules
def test_calendar
def test_show
get :show, :project_id => 1
assert_response :success
assert_template 'calendar'
assert_not_nil assigns(:calendar)
end
def test_show_should_run_custom_queries
@query = IssueQuery.create!(:name => 'Calendar', :is_public => true)
get :show, :query_id => @query.id
assert_response :success
end
def test_cross_project_calendar
get :show
assert_response :success
@ -40,16 +47,6 @@ class CalendarsControllerTest < ActionController::TestCase
assert_not_nil assigns(:calendar)
end
context "GET :show" do
should "run custom queries" do
@query = IssueQuery.create!(:name => 'Calendar', :is_public => true)
get :show, :query_id => @query.id
assert_response :success
end
end
def test_week_number_calculation
Setting.start_of_week = 7