spec/specs.rb in opal-spec-0.2.8 vs spec/specs.rb in opal-spec-0.2.9
- old
+ new
@@ -1,8 +1,5 @@
-require 'opal'
-require 'opal-spec'
-
@passed = 0
@failures = []
def assert(value, message='Not true')
if value
@@ -52,19 +49,19 @@
true.should be_true
false.should be_false
nil.should be_nil
end
- async 'this should pass (in 1 second time)' do
- set_timeout(1000) do
+ async 'this should pass (in 0.1 second time)' do
+ set_timeout(100) do
run_async {
1.should == 1
}
end
end
- async 'this should fail (in 1 second time)' do
- set_timeout(1000) do
+ async 'this should fail (in 0.1 second time)' do
+ set_timeout(100) do
run_async {
1.should == 5
}
end
end