From bb5b71bddcbc6edb3d1673e89740a20d834c58a2 Mon Sep 17 00:00:00 2001 From: Dan Rice Date: Tue, 19 Mar 2013 16:28:24 -0400 Subject: [PATCH] Fix a test assertion throwing an error under Ruby 2.0.0 --- test/functional/users_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index bacb95e8..4271ad6f 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -90,7 +90,7 @@ class UsersControllerTest < ActionController::TestCase def test_with_no_users User.expects(:no_users_yet?).returns(true) get :new - assert_match assigns['heading'], /get started/ + assert_match /get started/, assigns['heading'] assert_not_nil assigns[:user] end