summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLuis Lavena <luislavena@gmail.com>2008-11-29 04:30:24 -0200
committerLuis Lavena <luislavena@gmail.com>2008-11-29 04:30:24 -0200
commit46be5a30f21348bedacc510b5d808d003bb66e29 (patch)
tree4f95c6807457ed27b0d72a90079367cc09334c46 /spec
parent275231cce983b92c57348f3770a8be41141b045f (diff)
downloadrake-compiler-46be5a30f21348bedacc510b5d808d003bb66e29.tar.gz
Do not raise error if no configuration is found.
This broke execution on Windows. Yet still 'cross' should only be defined certain platforms.
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 47c1ea1..181d24b 100644
--- a/spec/lib/rake/extensiontask_spec.rb
+++ b/spec/lib/rake/extensiontask_spec.rb
@@ -250,13 +250,13 @@ describe Rake::ExtensionTask do
@config_path = mock_config_yml["rbconfig-#{@major_ver}"]
end
- it 'should generate an error if no rake-compiler configuration exist' do
+ it 'should not generate an error if no rake-compiler configuration exist' do
File.should_receive(:exist?).with(@config_file).and_return(false)
lambda {
Rake::ExtensionTask.new('extension_one') do |ext|
ext.cross_compile = true
end
- }.should raise_error(RuntimeError, /rake-compiler must be configured first/)
+ }.should_not raise_error(RuntimeError)
end
it 'should parse the config file using YAML' do