ensure gemspec works
This commit is contained in:
parent
66d8886205
commit
7f2e0d6301
@ -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:
|
||||
"""
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user