mirror of
https://github.com/redmine/redmine.git
synced 2025-11-03 03:46:19 +01:00
Adds url and author_url plugin attributes (#2162).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2041 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -32,7 +32,9 @@ class Redmine::PluginTest < Test::Unit::TestCase
|
||||
def test_register
|
||||
@klass.register :foo do
|
||||
name 'Foo plugin'
|
||||
url 'http://example.net/plugins/foo'
|
||||
author 'John Smith'
|
||||
author_url 'http://example.net/jsmith'
|
||||
description 'This is a test plugin'
|
||||
version '0.0.1'
|
||||
settings :default => {'sample_setting' => 'value', 'foo'=>'bar'}, :partial => 'foo/settings'
|
||||
@@ -44,7 +46,9 @@ class Redmine::PluginTest < Test::Unit::TestCase
|
||||
assert plugin.is_a?(Redmine::Plugin)
|
||||
assert_equal :foo, plugin.id
|
||||
assert_equal 'Foo plugin', plugin.name
|
||||
assert_equal 'http://example.net/plugins/foo', plugin.url
|
||||
assert_equal 'John Smith', plugin.author
|
||||
assert_equal 'http://example.net/jsmith', plugin.author_url
|
||||
assert_equal 'This is a test plugin', plugin.description
|
||||
assert_equal '0.0.1', plugin.version
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user