Commit 0da263565bd1eb370f230426a55ca5acb1c1b4b6
1 parent
067cd84b
Exists in
master
and in
27 other branches
guarantee main block is always visible to everybody
Showing
3 changed files
with
18 additions
and
0 deletions
Show diff stats
app/models/main_block.rb
test/functional/profile_design_controller_test.rb
... | ... | @@ -755,4 +755,12 @@ class ProfileDesignControllerTest < ActionController::TestCase |
755 | 755 | assert_response :forbidden |
756 | 756 | end |
757 | 757 | |
758 | + should 'guarantee main block is always visible to everybody' do | |
759 | + get :edit, :profile => 'designtestuser', :id => @b4.id | |
760 | + %w[logged not_logged followers].each do |option| | |
761 | + assert_no_tag :select, :attributes => {:name => 'block[display_user]'}, | |
762 | + :descendant => {:tag => 'option', :attributes => {:value => option}} | |
763 | + end | |
764 | + end | |
765 | + | |
758 | 766 | end | ... | ... |
test/unit/main_block_test.rb