Sha256: 52078a9734f061fd8f2521450d5cdb2133ddd90ee9a1255bc065918e53565f6f

Contents?: true

Size: 721 Bytes

Versions: 10

Compression:

Stored size: 721 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../lib/rake_check/rbp_checker')

describe RbpChecker do
  it "gives N/A on Error" do
    subject.stub('`' => 'Error')
    subject.result.should == { type: :rbp, check_output: 'Error', status: 'N/A' }
  end
  it "gives OK with no Errors" do
    subject.stub('`' => 'No warning found. Cool!')
    subject.result.should == { type: :rbp, check_output: '', status: "\e[32mOK\e[0m" }
  end
  it "gives warning message with Errors" do
    subject.stub('`' => 'Found 1 warnings.')
    subject.result.should == { type: :rbp,
                               check_output: 'Found 1 warnings.',
                               status: "\e[31mFound 1 warnings\e[0m" }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rake_check-0.1.8 spec/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.7 spec/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.6 spec_no_rails/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.5 spec_no_rails/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.4 spec_no_rails/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.3 spec/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.2 spec/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.1 spec/lib/rake_check/rbp_checker_spec.rb
rake_check-0.1.0 spec/lib/rake_check/rbp_checker_spec.rb
rake_check-0.0.1 spec/lib/rake_check/rbp_checker_spec.rb