Permalink
Browse files

switch to mini test

  • Loading branch information...
1 parent 579d475 commit fc241732fe80fc9dba08fd06dbee574dd10387af @randysecrist randysecrist committed Aug 15, 2012
View
@@ -47,8 +47,10 @@ GEM
beefcake (0.3.7)
builder (3.0.0)
columnize (0.3.6)
- contest (0.1.3)
i18n (0.6.0)
+ mini_shoulda (0.5.0)
+ minitest (> 2.1.0)
+ minitest (3.3.0)
multi_json (1.3.6)
rake (0.9.2.2)
ruby-debug-base19 (0.11.25)
@@ -72,8 +74,8 @@ PLATFORMS
ruby
DEPENDENCIES
- contest
linecache19!
+ mini_shoulda
rake
riak-client!
ripple!
@@ -20,5 +20,5 @@ Gem::Specification.new do |gem|
# Test Dependencies
gem.add_development_dependency 'rake'
- gem.add_development_dependency 'contest'
+ gem.add_development_dependency 'mini_shoulda'
end
View
@@ -1,4 +1,4 @@
test:
host: 127.0.0.1
- http_port: 8091
+ http_port: 8098
namespace: test_ns~
View
@@ -1,8 +1,8 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'test/unit'
-require 'contest'
+require 'minitest/autorun'
+require 'mini_shoulda'
require 'ripple-encryption'
View
@@ -1,9 +1,9 @@
require 'helper'
-class TestConfig < Test::Unit::TestCase
+class TestConfig < MiniTest::Spec
context "Ripple::Encryption::Config" do
should "raise heck if the config file isn't found" do
- assert_raise Ripple::Encryption::ConfigError do
+ assert_raises Ripple::Encryption::ConfigError do
config = Ripple::Encryption::Config.new('nowhere')
end
end
View
@@ -1,6 +1,6 @@
require 'helper'
-class TestEncryptor < Test::Unit::TestCase
+class TestEncryptor < MiniTest::Spec
context "Ripple::Encryption::Encryptor" do
setup do
config = Ripple::Encryption::Config.new ENV['ENCRYPTION']
@@ -22,19 +22,19 @@ class TestEncryptor < Test::Unit::TestCase
context "Ripple::Encryption::Encryptor with missing parameter" do
should "raise an error if key is missing" do
- assert_raise Ripple::Encryption::EncryptorError do
+ assert_raises Ripple::Encryption::EncryptorError do
Ripple::Encryption::Encryptor.new(:iv => 'iv', :cipher => 'AES-256-CBC')
end
end
should "raise an error if iv is missing" do
- assert_raise Ripple::Encryption::EncryptorError do
+ assert_raises Ripple::Encryption::EncryptorError do
Ripple::Encryption::Encryptor.new(:key => 'key', :cipher => 'AES-256-CBC')
end
end
should "raise an error if cipher is missing" do
- assert_raise Ripple::Encryption::EncryptorError do
+ assert_raises Ripple::Encryption::EncryptorError do
Ripple::Encryption::Encryptor.new(:key => 'key', :iv => 'iv')
end
end
@@ -1,6 +1,6 @@
require 'helper'
-class TestJsonDocument < Test::Unit::TestCase
+class TestJsonDocument < MiniTest::Spec
context "Ripple::Encryption::JsonDocument" do
setup do
# get some encryption going
View
@@ -1,6 +1,6 @@
require 'helper'
-class TestRipple < Test::Unit::TestCase
+class TestRipple < MiniTest::Spec
context "TestDocument" do
should "read the ripple document" do
assert doc = TestDocument.find('some_other_data')
@@ -1,6 +1,6 @@
require 'helper'
-class TestUnencryptedDocument < Test::Unit::TestCase
+class TestUnencryptedDocument < MiniTest::Spec
context "unencrypted GenericModel" do
should "read unencrypted document type" do
assert (doc = TestDocument.find('some_data')), "Could not find fixture."

0 comments on commit fc24173

Please sign in to comment.