Sha256: ed92723dfafae19b1e69d70768e5b5041e8b15619c4ca7dcc8ca726c4916280b

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/gif;base64,aiueo"} }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gnawrnip-0.0.3 spec/gnawrnip/step_screenshot_spec.rb
gnawrnip-0.0.2 spec/gnawrnip/step_screenshot_spec.rb