Sha256: 2f128f0e28b1a43309c5be0e487c111ab1b307fad551fabbd5c5d29cc88df97a

Contents?: true

Size: 1018 Bytes

Versions: 14

Compression:

Stored size: 1018 Bytes

Contents

require 'spec_helper'

module Badger
  describe Badger do
    before :each do
      @badger = Badger.new "https://github.com/doge/wow"
    end

    after :each do
      Config.instance.reset!
    end

    context 'service badges' do
      it 'has a travis badge' do
        @badger.add 'travis'
        expect(@badger[0]).to eq "[![Build Status](http://img.shields.io/travis/doge/wow.svg)](https://travis-ci.org/doge/wow)"
      end

      it 'has a travis badge and a gemnasium badge' do
        @badger.add 'travis'
        @badger.add 'gemnasium'
        expect(@badger[0]).to eq "[![Build Status](http://img.shields.io/travis/doge/wow.svg)](https://travis-ci.org/doge/wow)"
        expect(@badger[1]).to eq "[![Dependency Status](http://img.shields.io/gemnasium/doge/wow.svg)](https://gemnasium.com/doge/wow)"
        expect(@badger.length).to eq 2
      end

      it 'handles an unknown service gracefully' do
        @badger.add 'doge-service'
        expect(@badger.length).to eq 0
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.7 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.6 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.5 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.4 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.3 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.2 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.1 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
cvss-suite-1.0.0 vendor/cache/ruby/2.2.0/gems/badgerbadgerbadger-0.14.0/spec/services_spec.rb
badgerbadgerbadger-0.14.0 spec/services_spec.rb
badgerbadgerbadger-0.13.0 spec/services_spec.rb
badgerbadgerbadger-0.12.0 spec/services_spec.rb
badgerbadgerbadger-0.11.2 spec/services_spec.rb
badgerbadgerbadger-0.11.1 spec/services_spec.rb