Sha256: b45677cd7866f82f96b010f6649177366a1b0d60bc0313a56dbe6447d877e5ab
Contents?: true
Size: 528 Bytes
Versions: 4
Compression:
Stored size: 528 Bytes
Contents
require 'spec_helper' require 'ronin/credential' describe Credential do let(:name) { 'alice' } let(:secret) { 'secret' } subject do Credential.new( :user_name => {:name => name}, :password => {:clear_text => secret} ) end it "should provide the user-name" do subject.user.should == name end it "should provide the clear-text password" do subject.clear_text.should == secret end it "should be convertable to a String" do subject.to_s.should == "#{name}:#{secret}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ronin-1.5.0 | spec/credential_spec.rb |
ronin-1.5.0.rc2 | spec/credential_spec.rb |
ronin-1.5.0.rc1 | spec/credential_spec.rb |
ronin-1.4.1 | spec/credential_spec.rb |