Permalink
Browse files

fixed rakefile spec:test, added rake test

  • Loading branch information...
1 parent cf66fc5 commit 06ee6844895283bb9956e4019f68ca1718308766 @jeffp committed Jul 10, 2009
Showing with 13 additions and 3 deletions.
  1. +2 −2 README.rdoc
  2. +11 −1 Rakefile
View
@@ -82,7 +82,7 @@ demonstrated below using the Tractor class defined above:
t.gear_previous # => :reverse
t.gear_previous # => :over_drive
-The plugin has defined +gear+ and +gear=+ accessors for the attribute. They can be used
+The plugin has defined +gear+ and gear= accessors for the attribute. They can be used
to set the attribute to one of the defined enumeration values. Attempting to set the
attribute to something besides a defined enumeration value raises an ArgumentError.
@@ -99,7 +99,7 @@ of the enumeration array. For example:
==== Using Attribute Predicates
Attribute predicates are methods used to query the state of the attribute,
-for instance, +gear_is_neutral?+ is a predicate method for the gear attribute.
+for instance, gear_is_neutral? is a predicate method for the gear attribute.
The plugin will evaluate and respond to predicate methods
for any attribute defined with it. Predicate methods are not pre-generated. By
adhering to a specific format, the plugin can recognize attribute predicates
View
@@ -28,15 +28,25 @@ require 'spec/rake/spectask'
namespace :spec do
desc "Run all specs"
- Spec::Rake::SpecTask.new('test') do |t|
+ Spec::Rake::SpecTask.new(:test) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
+ t.libs << 'lib'
#t.spec_opts = ['--options', 'spec/spec.opts']
t.rcov = false
#t.rcov_dir = 'coverage'
#t.rcov_opts = ['--exclude', "kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
end
end
+desc "Run test"
+Spec::Rake::SpecTask.new(:test) do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.libs << 'lib'
+ #t.spec_opts = ['--options', 'spec/spec.opts']
+ t.rcov = false
+ #t.rcov_dir = 'coverage'
+ #t.rcov_opts = ['--exclude', "kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
+end
=begin
desc "Test the #{spec.name} plugin."

0 comments on commit 06ee684

Please sign in to comment.