summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-02 15:43:04 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-02 15:43:04 +0000
commit25037b841bfd52ca05c6c1a179c06fd509f17443 (patch)
tree087269bb2861a6486ee3499dae8c7944182f33bb /test/functional
parentd3158e37b9d4e3f3da8266f38eed626e5ed7df03 (diff)
downloadredmine-25037b841bfd52ca05c6c1a179c06fd509f17443.tar.gz
redmine-25037b841bfd52ca05c6c1a179c06fd509f17443.zip
Refactor: extract method to shoulda macro.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3905 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/account_controller_test.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index 61ad97430..2a8c9c66b 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -195,11 +195,7 @@ class AccountControllerTest < ActionController::TestCase
should_assign_to :user
should_redirect_to('my page') { {:controller => 'my', :action => 'account'} }
- should "create a new user" do
- user = User.last(:conditions => {:login => 'register'})
- assert user
- assert_kind_of User, user
- end
+ should_create_a_new_user { User.last(:conditions => {:login => 'register'}) }
should 'set the user status to active' do
user = User.last(:conditions => {:login => 'register'})