Sha256: 5cb09a6ded2ecc027db95684ba275618f91881f7b1a000080315c9d02c2a4f41

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require 'spec_helper'
require 'gnawrnip/step_screenshot'

module Gnawrnip
  describe StepScreenshot do
    let :template do
      StepScreenshot
    end

    it 'exists failure step template' do
      expect(TurnipFormatter::Step::Failure.templates).to have_key :screenshot
    end

    describe '.build' do
      subject { template.build('aiueo') }
      it { should match %r{<img src="data:image/png;base64,aiueo"} }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gnawrnip-0.0.4 spec/gnawrnip/step_screenshot_spec.rb
gnawrnip-0.0.1 spec/gnawrnip/step_screenshot_spec.rb