Sha256: 2c18b48880351c3b831dca131bfdc77908e1874442e3280bfba609daa489e84f

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

require 'rmagick'

THE_ANIMATED_GIF = Transform(/the animated gif "(.*?)"/) do |filename|
  in_current_dir do
    Magick::ImageList.new(filename)
  end
end

Then(/^(#{THE_ANIMATED_GIF}) should have (\d+) frames$/) do |animated_gif, expected_frames|
  expect(animated_gif.length).to eql(expected_frames.to_i)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara-animate-0.1.0 features/step_definitions/README.md_steps.rb