Sha256: 134dff6002586f45f7097aa6366b66dfde45e11e5a6e8060b400430bcde3c2c0

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

require 'spec_helper'

require 'bumpspark/helper'

describe Bumpspark::Helper do

  let(:object) { Object.new }
  before { object.extend(Bumpspark::Helper) }

  context 'generating an image' do
    
    it 'creates an image tag' do
      object.should_receive(:tag) do |name, options|
        expect(name).to eq(:img)
        expect(options[:src]).to include("data:image/png;base64")
      end
      object.bumpspark_tag([1, 2, 3])
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bumpspark-2.0.0 spec/lib/bumpspark/helper_spec.rb