summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2013-03-27 21:25:17 +0100
committerLars Kanis <lars@greiz-reinsdorf.de>2013-03-27 21:25:17 +0100
commita3365c995770ceddba098937c2ec9a5e4b3914d9 (patch)
tree39a20bd7e02eccd8e817ca615b910362172a2a0e /spec
parent88288256708b68e96c93bf56c3271cb9d155530e (diff)
downloadrake-compiler-a3365c995770ceddba098937c2ec9a5e4b3914d9.tar.gz
Use platform specific directories for packaging gem files.
Building gems for distinct platforms within one rake run conflicted in the lib/ directory, because all binary extensions were stored there and were copied from there to become packaged. This resulted in storing a binary extension of a wrong platform in a gem. To avoid this, the files to package are now stored in a platform specific stage directory and are used to package the specific gem.
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/rake/extensiontask_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/rake/extensiontask_spec.rb b/spec/lib/rake/extensiontask_spec.rb
index c66c1ea..777760f 100644
--- a/spec/lib/rake/extensiontask_spec.rb
+++ b/spec/lib/rake/extensiontask_spec.rb
@@ -264,7 +264,7 @@ describe Rake::ExtensionTask do
context 'native:my_gem:{platform}' do
it 'should depend on binary extension' do
Rake::ExtensionTask.new('extension_one', @spec)
- Rake::Task["native:my_gem:#{@platform}"].prerequisites.should include("lib/#{@ext_bin}")
+ Rake::Task["native:my_gem:#{@platform}"].prerequisites.should include("tmp/#{@platform}/stage/lib/#{@ext_bin}")
end
end
end
@@ -470,7 +470,7 @@ describe Rake::ExtensionTask do
def mock_gem_spec(stubs = {})
mock(Gem::Specification,
- { :name => 'my_gem', :platform => 'ruby' }.merge(stubs)
+ { :name => 'my_gem', :platform => 'ruby', :files => [] }.merge(stubs)
)
end