Sha256: d359a3c5e745bc17378a820478c01b0eee3b1c5412d18b83092ace7c94a18d27
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
require "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.2.0 | test/test_result.rb |