Sha256: 93602de95ede1cd88cc8724977f184a5ea94b2e12bb5f5c48939146a38d7b5b7
Contents?: true
Size: 669 Bytes
Versions: 25
Compression:
Stored size: 669 Bytes
Contents
require File.join(File.dirname(__FILE__), 'test_helper') class KeySetTest < Test::Unit::TestCase include Octopi def setup fake_everything @user = User.find("fcoury") end context KeySet do should "be able to find a key" do auth do assert_not_nil Api.me.keys.find("macbook") end end should "not be able to find a key without a valid title" do exception = assert_raise NotFound do auth do assert_not_nil Api.me.keys.find("windows-box") end end assert_equal "The Key you were looking for could not be found, or is private.", exception.message end end end
Version data entries
25 entries across 25 versions & 4 rubygems