I have two sets of spec files :
spec/unit1/*\_spec.rb
spec/unit2/*\_spec.rb

unit2 two has some stubs that is supposed to be used only within unit2 but somehow it affects unit1 tests when I do:

```
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.fail_on_error = false
  spec.rspec_opts = "--format documentation"
  spec.pattern = FileList['spec/*/*_spec.rb']
end

```

Everything is fine if it is separated like:

```
RSpec::Core::RakeTask.new(:spec1) do |spec1|
  spec.fail_on_error = false
  spec.rspec_opts = "--format documentation"
  spec.pattern = FileList['spec/unit1/*_spec.rb']
end
RSpec::Core::RakeTask.new(:spec2) do |spec2|
  spec.fail_on_error = false
  spec.rspec_opts = "--format documentation"
  spec.pattern = FileList['spec/unit2/*_spec.rb']
end

```

my 
rake spec1
and rake spec2 are fine.

Any idea what the problem is ?
if not how do I write the RakeTask such that
rake spec does rake spec1 + rake spec2