Skip to content

Commit

Permalink
do not include rubygems in test-classes for rails projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Jul 3, 2011
1 parent b937d85 commit c10acde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ruby-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>rspec-maven-plugin</artifactId>
<version>${project.version}</version>
<!-- hardcode it so integration tests run on new version -->
<version>0.28.3</version>
<configuration>
<specSourceDirectory>src/test/spec</specSourceDirectory>
</configuration>
Expand Down
1 change: 1 addition & 0 deletions ruby-tools/src/main/ruby/maven/tools/rails_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def add_defaults(args = {})
self.properties = {
"jetty.version" => versions[:jetty_plugin],
"rails.env" => "development",
"gem.includeRubygemsInTestResources" => false
}.merge(self.properties)

plugin(:rails3) do |rails|
Expand Down
1 change: 1 addition & 0 deletions ruby-tools/src/test/spec/maven/tools/rails_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
</dependencies>
<properties>
<gem.home>${project.build.directory}/rubygems</gem.home>
<gem.includeRubygemsInTestResources>false</gem.includeRubygemsInTestResources>
<gem.path>${project.build.directory}/rubygems</gem.path>
<jetty.version>7.4.2.v20110526</jetty.version>
<jruby.plugins.version>@project.version@</jruby.plugins.version>
Expand Down

0 comments on commit c10acde

Please sign in to comment.