Sha256: 41b51cf4cdf2b4641af4a3d131cac1941e697e86f5b6f12011b238f9141b5ef2

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Sonar::CLI do
  context "with a valid profile" do
    before do
      Sonar::RCFile.instance.path = "#{fixtures_path}/sonar.rc"
    end
    it "should return the profile" do
      output = capture(:stdout) { Sonar::CLI.start(['profile']) }
      expect(output).to match(/email@asdfasdfasfd.com/)
    end
  end
  context "without a config file" do
    before do
      Sonar::RCFile.instance.path = ""
    end
    xit "should create the missing config file" do
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sonar-client-0.0.3 spec/sonar/cli_spec.rb
sonar-client-0.0.2 spec/sonar/cli_spec.rb
sonar-client-0.0.1 spec/sonar/cli_spec.rb