summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 12:29:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 12:29:52 +0000
commit1b923819e8305bfe324c9c59e745f61c9c49ef06 (patch)
tree3acd758bc119e68b2c41dcfb9d6b35d163d4d64b /test/functional
parent7dbc3e4774f2c405a7f2784c93160066a6c88303 (diff)
downloadredmine-1b923819e8305bfe324c9c59e745f61c9c49ef06.tar.gz
redmine-1b923819e8305bfe324c9c59e745f61c9c49ef06.zip
Removed some generate! calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9079 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/versions_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index fe5d3f895..fb6de5785 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -70,7 +70,7 @@ class VersionsControllerTest < ActionController::TestCase
end
def test_index_showing_subprojects_versions
- @subproject_version = Version.generate!(:project => Project.find(3))
+ @subproject_version = Version.create!(:project => Project.find(3), :name => "Subproject version")
get :index, :project_id => 1, :with_subprojects => 1
assert_response :success
assert_template 'index'