Permalink
Browse files

Fixed up the tests

  • Loading branch information...
1 parent a2a48bd commit 7aae89b0e7f53f87b0b338b6727c91314b25c5f8 David Davis committed Feb 26, 2012
Showing with 7 additions and 12 deletions.
  1. +7 −7 spec/classes/code_executor_spec.rb
  2. +0 −5 spec/models/user_token_spec.rb
@@ -8,13 +8,13 @@
describe "#execute" do
- #it "should return false if the input is Kernel.exit!" do
- #code_executor = CodeExecutor.new("Kernel.exit!")
- #puts code_executor.execute
- #code_executor.execute.should eql(false)
- #code_executor.errors.count.should >= 1
- #code_executor.errors.first.downcase.should =~ /your code contains a class or method call that is not allowed/
- #end
+ it "should return false if the input is Kernel.exit!" do
+ code_executor = CodeExecutor.new("Kernel.exit!")
+ puts code_executor.execute
+ code_executor.execute.should eql(false)
+ code_executor.errors.count.should >= 1
+ code_executor.errors.first.downcase.should =~ /prematurely/
+ end
#it "should halt after #{CodeExecutor::MAX_EXECUTION_TIME} seconds" do
#code_executor = CodeExecutor.new("loop {}")
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe UserToken do
- pending "add some examples to (or delete) #{__FILE__}"
-end

0 comments on commit 7aae89b

Please sign in to comment.