Sha256: 8b35aab5dfbc408c202a387cd4ce9783f635296a645e183257160ce00a8740a7

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

require 'spec_helper'
require 'tempfile'

describe GithubChart::Chart do
  let(:svg) { GithubChart.new.svg }

  before(:all) do
    @file = Tempfile.new('svg')
    @file.write(GithubChart.new.svg)
    @path = @file.path
    @file.close
  end

  after(:all) { @file.unlink }

  describe '#svg' do
    it 'makes an SVG' do
      expect(`file #{@path}`).to include('Scalable Vector Graphic')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
githubchart-1.1.0 spec/githubchart/svg_spec.rb
githubchart-1.0.1 spec/githubchart/svg_spec.rb
githubchart-1.0.0 spec/githubchart/svg_spec.rb
githubchart-0.1.1 spec/githubchart/svg_spec.rb
githubchart-0.0.13 spec/githubchart/svg_spec.rb
githubchart-0.0.10 spec/githubchart/svg_spec.rb
githubchart-0.0.9 spec/githubchart/svg_spec.rb
githubchart-0.0.8 spec/githubchart/svg_spec.rb