Permalink
Browse files

Added gemcutter source to generated Gemfiles.

  • Loading branch information...
1 parent 27b6c48 commit ccaf71472d560194020f44e5b0d0e7b0c9790b6d @technicalpickles technicalpickles committed Aug 22, 2010
@@ -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'
@@ -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,3 +1,4 @@
+source :gemcutter
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"

0 comments on commit ccaf714

Please sign in to comment.