Skip to content

Commit

Permalink
Added gemcutter source to generated Gemfiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Aug 22, 2010
1 parent 27b6c48 commit ccaf714
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions features/generator/gemfile.feature
Expand Up @@ -20,6 +20,7 @@ Feature: generated Gemfiel
Scenario: default
When I generate a project named 'the-perfect-gem' that is 'zomg, so good'
Then a file named 'the-perfect-gem/Gemfile' is created
And 'Gemfile' uses the gemcutter source
And 'Gemfile' has a development dependency on 'bundler'
And 'Gemfile' has a development dependency on 'jeweler'
And 'Gemfile' has a development dependency on 'rcov'
Expand Down
7 changes: 7 additions & 0 deletions features/step_definitions/generator_steps.rb
Expand Up @@ -338,3 +338,10 @@

assert_no_match /Bundler\.setup/, content
end

Then /^'Gemfile' uses the (.*) source$/ do |source|
content = File.read(File.join(@working_dir, @name, 'Gemfile'))

assert_match "source :#{source}", content
end

1 change: 1 addition & 0 deletions lib/jeweler/templates/Gemfile
@@ -1,3 +1,4 @@
source :gemcutter
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"
Expand Down

0 comments on commit ccaf714

Please sign in to comment.