From 9652b8d6e951af364eb5b39d4ce5c52824813991 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 20 Dec 2010 13:46:53 -0300 Subject: [PATCH] Fix tests --- test/functional/themes_controller_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/themes_controller_test.rb b/test/functional/themes_controller_test.rb index eda3386..6615e0e 100644 --- a/test/functional/themes_controller_test.rb +++ b/test/functional/themes_controller_test.rb @@ -57,8 +57,8 @@ class ThemesControllerTest < Test::Unit::TestCase profile.update_theme(t1) get :index, :profile => 'testinguser' - assert_tag :attributes => { :class => 'selected theme' }, :descendant => { :content => /(current)/ } - assert_no_tag :attributes => { :class => 'selected theme' }, :descendant => { :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set/one" } } + assert_tag :attributes => { :class => 'theme-opt list-opt selected' } + assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set/one" } end should 'display list of my themes for edition' do @@ -273,8 +273,8 @@ class ThemesControllerTest < Test::Unit::TestCase LayoutTemplate.expects(:all).returns([t1, t2]) get :index, :profile => 'testinguser' - assert_tag :tag => 'td', :attributes => { :class => 'selected template' }, :descendant => { :content => /(current)/ } - assert_no_tag :tag => 'td', :attributes => { :class => 'selected template' }, :descendant => { :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set_layout_template/default"} } + assert_tag :attributes => { :class => 'template-opt list-opt selected' } + assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set_layout_template/default"} end should 'set template' do -- libgit2 0.21.2