Commit 9652b8d6e951af364eb5b39d4ce5c52824813991

Authored by Antonio Terceiro
1 parent 5446000c

Fix tests

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
test/functional/themes_controller_test.rb
@@ -57,8 +57,8 @@ class ThemesControllerTest < Test::Unit::TestCase @@ -57,8 +57,8 @@ class ThemesControllerTest < Test::Unit::TestCase
57 profile.update_theme(t1) 57 profile.update_theme(t1)
58 get :index, :profile => 'testinguser' 58 get :index, :profile => 'testinguser'
59 59
60 - assert_tag :attributes => { :class => 'selected theme' }, :descendant => { :content => /(current)/ }  
61 - assert_no_tag :attributes => { :class => 'selected theme' }, :descendant => { :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set/one" } } 60 + assert_tag :attributes => { :class => 'theme-opt list-opt selected' }
  61 + assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set/one" }
62 end 62 end
63 63
64 should 'display list of my themes for edition' do 64 should 'display list of my themes for edition' do
@@ -273,8 +273,8 @@ class ThemesControllerTest < Test::Unit::TestCase @@ -273,8 +273,8 @@ class ThemesControllerTest < Test::Unit::TestCase
273 LayoutTemplate.expects(:all).returns([t1, t2]) 273 LayoutTemplate.expects(:all).returns([t1, t2])
274 274
275 get :index, :profile => 'testinguser' 275 get :index, :profile => 'testinguser'
276 - assert_tag :tag => 'td', :attributes => { :class => 'selected template' }, :descendant => { :content => /(current)/ }  
277 - assert_no_tag :tag => 'td', :attributes => { :class => 'selected template' }, :descendant => { :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set_layout_template/default"} } 276 + assert_tag :attributes => { :class => 'template-opt list-opt selected' }
  277 + assert_no_tag :tag => 'a', :attributes => { :href => "/myprofile/testinguser/themes/set_layout_template/default"}
278 end 278 end
279 279
280 should 'set template' do 280 should 'set template' do