summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hoe.rb3
-rw-r--r--test/test_hoe.rb8
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/hoe.rb b/lib/hoe.rb
index 77e5b59..d1e1e67 100644
--- a/lib/hoe.rb
+++ b/lib/hoe.rb
@@ -357,10 +357,9 @@ class Hoe
end
def developer name, email
- self.author << email
+ self.author << name
self.email << email
end
- alias :[]= :developer
def define_tasks # :nodoc:
def with_config # :nodoc:
diff --git a/test/test_hoe.rb b/test/test_hoe.rb
index a75a1d6..5aa611a 100644
--- a/test/test_hoe.rb
+++ b/test/test_hoe.rb
@@ -39,7 +39,13 @@ class TestHoe < Test::Unit::TestCase
uninstall)
expected += boring
- Hoe.new('blah', '1.0.0')
+ spec = Hoe.new('blah', '1.0.0') do |h|
+ h.developer("name", "email")
+ end
+
+ assert_equal ["name"], spec.author
+ assert_equal ["email"], spec.email
+
tasks = Rake.application.tasks
public_tasks = tasks.reject { |t| t.comment.nil? }.map { |t| t.name }.sort