I am trying to create a couple of rake tasks that I can call individually:

```
require 'rspec/core/rake_task'

namespace :grouped_tests do

desc "Run the Group A specs."
task :group_a => :spec
  puts "starting tests a"
  RSpec::Core::RakeTask.new do |t|
    t.pattern = "spec/helpers/*_spec.rb"
  end

desc "Run the Group B specs."
task :group_b => :spec
  puts "starting tests b"
  RSpec::Core::RakeTask.new do |t|
    t.pattern = "spec/views/*_spec.rb"
  end

end

```

But when I call the following:

```
rake grouped_tests:group_b

```

It still shows in the output (from the `puts`):

```
starting tests a
starting tests b

```

And it only runs the `:group_a`, even though I am calling `group_b`.

Any ideas why?