summaryrefslogtreecommitdiff
path: root/spec/lib/rake/extensiontask_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/rake/extensiontask_spec.rb')
-rw-r--r--spec/lib/rake/extensiontask_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/rake/extensiontask_spec.rb b/spec/lib/rake/extensiontask_spec.rb
index 1c4c9bb..ba87a92 100644
--- a/spec/lib/rake/extensiontask_spec.rb
+++ b/spec/lib/rake/extensiontask_spec.rb
@@ -58,6 +58,15 @@ describe Rake::ExtensionTask do
end
ext.platform.should == 'universal-foo-bar-10.5'
end
+
+ it 'should allow extra sources to be added' do
+ ext = Rake::ExtensionTask.new('extension_one') do |ext|
+ ext.extra_sources << 'extra.c'
+ end
+ ext.extra_sources.should include('extra.c')
+ # Private API between the base task and the extension task
+ ext.send(:source_files).should include('extra.c')
+ end
end
end