Skip to content
Browse files

Removed needless code. Eric's Quote: Someone needs to be slapped

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1843 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent e3502a7 commit 6fd3b1a1cafca7f8eb7598d6cec29d2cf467bac6 zenspider committed
Showing with 5 additions and 4 deletions.
  1. +4 −3 lib/rubygems/specification.rb
  2. +1 −1 test/test_gem_specification.rb
View
7 lib/rubygems/specification.rb
@@ -392,7 +392,7 @@ def test_suite_file=(val)
# true when this gemspec has been loaded from a specifications directory.
# This attribute is not persisted.
- attr_writer :loaded
+ attr_accessor :loaded
# Path this gemspec was loaded from. This attribute is not persisted.
attr_accessor :loaded_from
@@ -552,9 +552,10 @@ def lib_files
# Predicates -----------------------------------------------------
- def loaded?; @loaded ? true : false ; end
- def has_rdoc?; has_rdoc ? true : false ; end
def has_unit_tests?; not test_files.empty?; end
+
+ alias :loaded? :loaded
+ alias :has_rdoc? :has_rdoc
alias has_test_suite? has_unit_tests? # (deprecated)
# Constructors ---------------------------------------------------
View
2 test/test_gem_specification.rb
@@ -500,7 +500,7 @@ def test_full_name_windows
end
def test_has_rdoc_eh
- assert_equal true, @a1.has_rdoc?
+ assert @a1.has_rdoc?
end
def test_hash

0 comments on commit 6fd3b1a

Please sign in to comment.
Something went wrong with that request. Please try again.