Fixed defect with using the Rake Task without having Rails installed #28
@ -14,6 +14,16 @@ module Jasmine
|
|||||||
end
|
end
|
||||||
describe Jasmine::Headless::Task do
|
describe Jasmine::Headless::Task do
|
||||||
it 'should not explode when Rails is undefined' do
|
it 'should not explode when Rails is undefined' do
|
||||||
|
Object.send(:remove_const, :Rails) if defined?(Rails)
|
||||||
|
Jasmine::Headless::Task.new('jasmine:headless') do |t|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
it 'should be OK if rails is defined' do
|
||||||
|
module Rails
|
||||||
|
def self.version
|
||||||
|
return "0"
|
||||||
|
end
|
||||||
|
end
|
||||||
Jasmine::Headless::Task.new('jasmine:headless') do |t|
|
Jasmine::Headless::Task.new('jasmine:headless') do |t|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user