Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Generate .rvmrc file

  • Loading branch information...
commit 7e55960b94c804693536ab6c258ab83bdefc9f54 1 parent 982e745
Patrick Reagan authored March 21, 2011
1  lib/simple_gem/gem.rb
@@ -24,6 +24,7 @@ def generate_structure
24 24
       generate_gem_directory
25 25
       generate_subdirectories
26 26
       generate_file('gitignore.erb', '.gitignore')
  27
+      generate_file('rvmrc.erb', '.rvmrc')
27 28
       generate_file('lib.rb.erb', "lib/#{self.ruby_name}.rb")
28 29
       generate_file('lib_version.rb.erb', "lib/#{self.ruby_name}/version.rb")
29 30
       generate_file('Rakefile.erb', 'Rakefile')
1  templates/rvmrc.erb
... ...
@@ -0,0 +1 @@
  1
+rvm 1.9.2@<%= self.name %> --create
4  test/simple_gem/gem_test.rb
@@ -107,6 +107,10 @@ def self.should_generate(expectations)
107 107
           File.exist?("#{@tmp_dir}/#{@name}/.gitignore").should == true
108 108
         end
109 109
 
  110
+        should "generate the .rvmrc file" do
  111
+          File.exist?("#{@tmp_dir}/#{@name}/.rvmrc").should == true
  112
+        end
  113
+
110 114
         should "be able to generate the gemspec" do
111 115
           @gem.generate_gemspec
112 116
           File.exist?("#{@tmp_dir}/#{@name}/simple-gem.gemspec").should == true

0 notes on commit 7e55960

Please sign in to comment.
Something went wrong with that request. Please try again.