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

View File

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