Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Switch to minitest #1

Merged
merged 2 commits into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 15, 2012
  1. @randysecrist

    switch to mini test

    randysecrist authored
  2. @randysecrist

    rollback fixture change

    randysecrist authored
This page is out of date. Refresh to see the latest.
View
6 Gemfile.lock
@@ -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!
View
2  ripple-encryption.gemspec
@@ -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
4 test/helper.rb
@@ -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
4 test/test_config.rb
@@ -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
8 test/test_encryptor.rb
@@ -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
View
2  test/test_json_document.rb
@@ -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
2  test/test_ripple.rb
@@ -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')
View
2  test/test_unencrypted_document.rb
@@ -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."
Something went wrong with that request. Please try again.