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