Skip to content
Browse files

Support for multiple group names

* Bundler's group method can take multiple group names, appraisal breaks
  this.
* Add test to group with many arguments
  • Loading branch information...
1 parent 1c0bab2 commit ad2aeb99649f6a78f78be5009fb50306f06eaa9f Andy Delcambre and Rafael Mendonça França committed with mike-burns May 30, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 features/appraisals.feature
  2. +1 −1 lib/appraisal/gemfile.rb
View
4 features/appraisals.feature
@@ -10,6 +10,7 @@ Feature: run a rake task through several appraisals
| dummy_rake | 0.8.7 |
| dummy_rake | 0.9.0 |
| dummy_sass | 3.1.0 |
+ | dummy_spec | 3.1.9 |
When I cd to "projecto"
And I write to "Gemfile" with:
"""
@@ -18,6 +19,9 @@ Feature: run a rake task through several appraisals
group :assets do
gem 'dummy_sass', " ~> 3.1.0"
end
+ group :test, :development do
+ gem 'dummy_spec', " ~> 3.1.0"
+ end
"""
When I add "appraisal" from this project as a dependency
And I write to "Appraisals" with:
View
2 lib/appraisal/gemfile.rb
@@ -24,7 +24,7 @@ def gem(name, *requirements)
@dependencies << Dependency.new(name, requirements)
end
- def group(name)
+ def group(*names)
# ignore the group
end

0 comments on commit ad2aeb9

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