diff options
Diffstat (limited to 'spec/rubyspec/library/digest/sha256/inspect_spec.rb')
-rw-r--r-- | spec/rubyspec/library/digest/sha256/inspect_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/rubyspec/library/digest/sha256/inspect_spec.rb b/spec/rubyspec/library/digest/sha256/inspect_spec.rb new file mode 100644 index 0000000000..5e44b58c63 --- /dev/null +++ b/spec/rubyspec/library/digest/sha256/inspect_spec.rb @@ -0,0 +1,12 @@ +require File.expand_path('../../../../spec_helper', __FILE__) +require File.expand_path('../shared/constants', __FILE__) + +describe "Digest::SHA256#inspect" do + + it "returns a Ruby object representation" do + cur_digest = Digest::SHA256.new + cur_digest.inspect.should == "#<#{SHA256Constants::Klass}: #{cur_digest.hexdigest()}>" + end + +end + |