Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

made the tests a bit more robust, but they may now be more DANGEROUS!

  • Loading branch information...
commit 3b214f913f842ac89513214a4fbd363402e1dc9d 1 parent 953e4ec
@zspencer zspencer authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 spec/lib/jasmine/headless/task_spec.rb
View
10 spec/lib/jasmine/headless/task_spec.rb
@@ -14,6 +14,16 @@ def task(block)
end
describe Jasmine::Headless::Task 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|
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.