Skip to content

Commit 8cbe7e9

Browse files
committed
Removed broken functional test
* A classic example of why functional tests are useless, since verifying that sending the wrong parameters returns the expected result. Then when forms change, tests don't break, but the UI silently starts to fail.
1 parent 8493dbc commit 8cbe7e9

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ GEM
186186
multi_json (>= 1.0.2)
187187
xpath (0.1.4)
188188
nokogiri (~> 1.3)
189-
yard (0.8.1)
189+
yard (0.8.2)
190190

191191
PLATFORMS
192192
ruby

test/functional/cms/users_controller_test.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,6 @@ def test_show
137137
assert_response :success
138138
end
139139

140-
def test_update
141-
put :update, :id => @user.id, :cms_user => {:first_name => "First"}
142-
reset(:user)
143-
144-
assert_redirected_to users_path
145-
assert_equal "First", @user.first_name
146-
assert_equal "User '#{@user.login}' was updated", flash[:notice]
147-
end
148-
149140
def test_add_to_groups
150141
@group_ids = [create(:group).id, create(:group).id]
151142
put :update, :id => @user.id, :group_ids => @group_ids

0 commit comments

Comments
 (0)