Skip to content

Commit

Permalink
fixed rakefile spec:test, added rake test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffp committed Jul 10, 2009
1 parent cf66fc5 commit 06ee684
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down
12 changes: 11 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 06ee684

Please sign in to comment.