Sha256: fc4aad17cea5fdcbd3dd3199fb2855a98c069092ca38af797ceaee0378182c1f

Contents?: true

Size: 643 Bytes

Versions: 14

Compression:

Stored size: 643 Bytes

Contents

require 'establish/password_manager'

describe Establish do
  describe Establish::PasswordManager do
    let (:username) { "test@example123.com" }
    let (:password) { "somethingFancy123$" }

    before do
      ENV["ESTABLISH_USER"] = username
      ENV["ESTABLISH_PASSWORD"] = password
    end

    describe "#username" do
      it "uses the environment variable if given" do
        Establish::PasswordManager.new.username.should eq(username)
      end
    end

    describe "#password" do
      it "uses the environment variable if given" do
        Establish::PasswordManager.new.password.should eq(password)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
establish-0.0.33 spec/password_manager_spec.rb
establish-0.0.32 spec/password_manager_spec.rb
establish-0.0.31 spec/password_manager_spec.rb
establish-0.0.30 spec/password_manager_spec.rb
establish-0.0.29 spec/password_manager_spec.rb
establish-0.0.28 spec/password_manager_spec.rb
establish-0.0.27 spec/password_manager_spec.rb
establish-0.0.26 spec/password_manager_spec.rb
establish-0.0.25 spec/password_manager_spec.rb
establish-0.0.24 spec/password_manager_spec.rb
establish-0.0.23 spec/password_manager_spec.rb
establish-0.0.22 spec/password_manager_spec.rb
establish-0.0.21 spec/password_manager_spec.rb
establish-0.0.20 spec/password_manager_spec.rb