ensure gemspec works

This commit is contained in:
John Bintz 2012-06-06 13:22:28 -04:00
parent 66d8886205
commit 7f2e0d6301
2 changed files with 10 additions and 1 deletions

View File

@ -1,10 +1,13 @@
@fakefs
Feature: Gemfiles
@wip
Scenario: Process a pure Ruby gemfile
Given I have the file "Gemfile.penchant" with the content:
"""
source :rubygems
gemspec
group :cats, :dogs do
case environment
when :local
@ -19,6 +22,7 @@ Feature: Gemfiles
"""
# generated by penchant, environment: local
source :rubygems
gemspec
group :cats, :dogs do
gem "test", {:path=>"../test"}
@ -29,6 +33,7 @@ Feature: Gemfiles
"""
# generated by penchant, environment: remote
source :rubygems
gemspec
group :cats, :dogs do
gem "test", {:git=>"git://github.com/johnbintz/test.git"}
@ -129,7 +134,7 @@ Feature: Gemfiles
gem "one", {:path=>"../one"}
"""
@wip @mocha
@mocha
Scenario: OS-specific blocks
Given I have the file "Gemfile.penchant" with the content:
"""

View File

@ -223,6 +223,10 @@ module Penchant
@output << %{gem #{args_to_string(args)}}
end
def gemspec
@output << %{gemspec}
end
def gems(*args)
gems, template = split_args(args)