Sha256: cf81fe605f87230c9abcdbf10de67bc7be0a8d1a57a010e938f9b1d1b7b3f3a7
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
require "spec_helper" RSpec.describe "Config" do it "allows us to set token and user email" do allow(File).to receive(:expand_path).and_return(fixtures_path) command = %w(config --password SECRET_TOKEN --email user-one@example.com) Ribose::CLI.start(command) expect(Ribose::CLI::RCFile.user_password).to eq("SECRET_TOKEN") expect(Ribose::CLI::RCFile.user_email).to eq("user-one@example.com") end def fixtures_path File.expand_path("../../fixtures", __FILE__) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ribose-cli-0.5.0 | spec/acceptance/config_spec.rb |