Sha256: e6a013951535e992b8856aa7e6a44d4b919cf392d12141af0d917511482153b0
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require "#{File.dirname(__FILE__)}/test_helper" module Messenger class ResultTest < Test::Unit::TestCase context "A result" do should "return success as a boolean" do result = Result.new(true, "Response") assert result.success? result = Result.new(false, "Response") assert_equal false, result.success? end should "give access to the raw response" do result = Result.new(true, "Response") assert_equal "Response", result.response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
messenger-0.1.1 | test/test_result.rb |