spec/java/bdd_spec.rb in vic-buildr-1.3.3 vs spec/java/bdd_spec.rb in vic-buildr-1.3.4
- old
+ new
@@ -36,11 +36,11 @@
success = File.expand_path('src/spec/ruby/success_spec.rb')
write(success, 'describe("success") { it("is true") { nil.should be_nil } }')
failure = File.expand_path('src/spec/ruby/failure_spec.rb')
write(failure, 'describe("failure") { it("is false") { true.should == false } }')
error = File.expand_path('src/spec/ruby/error_spec.rb')
- write(error, 'describe("error") { it("raises") { eval("lambda") } }')
+ write(error, 'describe("error") { it("raises") { lambda; } }')
foo do
lambda { test.invoke }.should raise_error(/Tests failed/)
test.tests.should include(success, failure, error)
test.failed_tests.should include(failure, error)
test.passed_tests.should include(success)
@@ -206,11 +206,11 @@
error = File.expand_path('src/spec/ruby/error_test.rb')
write(error, <<-TESTUNIT)
require 'test/unit'
class TC_Error < Test::Unit::TestCase
def test_error
- eval('lambda')
+ lambda;
end
end
TESTUNIT
foo do
lambda { test.invoke }.should raise_error(/Tests failed/)
@@ -224,11 +224,11 @@
success = File.expand_path('src/spec/ruby/success_expect.rb')
write(success, 'Expectations { expect(true) { true } }')
failure = File.expand_path('src/spec/ruby/failure_expect.rb')
write(failure, 'Expectations { expect(true) { false } }')
error = File.expand_path('src/spec/ruby/error_expect.rb')
- write(error, 'Expectations { expect(nil) { eval("lambda") } }')
+ write(error, 'Expectations { expect(nil) { lambda; } }')
foo do
lambda { test.invoke }.should raise_error(/Tests failed/)
test.tests.should include(success, failure, error)
test.failed_tests.should include(failure, error)
test.passed_tests.should include(success)
@@ -239,10 +239,10 @@
success = File.expand_path('src/spec/ruby/success_spec.rb')
write(success, 'describe("success") { it("is true") { nil.should be_nil } }')
failure = File.expand_path('src/spec/ruby/failure_spec.rb')
write(failure, 'describe("failure") { it("is false") { true.should == false } }')
error = File.expand_path('src/spec/ruby/error_spec.rb')
- write(error, 'describe("error") { it("raises") { eval("lambda") } }')
+ write(error, 'describe("error") { it("raises") { lambda; } }')
pending = File.expand_path('src/spec/ruby/pending_spec.rb')
write(pending, 'describe("peding") { it "is not implemented" }')
foo do
lambda { test.invoke }.should raise_error(/Tests failed/)
test.tests.should include(success, failure, error)