Sha256: 8797459c908a5d5fa4a68baffd81d9096b43abdda79bd3a1fedf6481213ad021
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
require 'spec_helper' require 'ronin/credential' describe Credential do let(:name) { 'alice' } let(:password) { 'secret' } subject do described_class.new( :user_name => {:name => name}, :password => {:clear_text => password} ) end it "should provide the user-name" do expect(subject.user).to eq(name) end it "should provide the clear-text password" do expect(subject.clear_text).to eq(password) end describe "#to_s" do it "should include the user name and password" do expect(subject.to_s).to eq("#{name}:#{password}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-1.5.1 | spec/credential_spec.rb |