Sha256: 1c1843799ec5f18e1fe969764e4fa048377ac68fb862ec879bd6e3f5a4f980c9

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')

class EncryptorTest < Test::Unit::TestCase
  def setup
    @encryptor = PluginAWeek::EncryptedStrings::Encryptor.new
  end
  
  def test_should_be_able_to_decrypt_by_default
    assert @encryptor.can_decrypt?
  end
  
  def test_should_raise_exception_if_decrypt_not_implemented
    assert_raises(NotImplementedError) { @encryptor.decrypt('test') }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
encrypted_strings-0.0.2 test/encryptor_test.rb
encrypted_strings-0.0.3 test/encryptor_test.rb