Sha256: ef71d2721d54cdf74b986eb200c4d0af685dcbfad29370c27f49afac65a99d3b

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

Given /a new Image sized (\d+) x (\d+)/ do |width, height|
  @image = Image.new(width.to_i, height.to_i)
end

Given /a new Geometry from string (.*)/ do |geometry|
  @geometry = Geometry.from_s(geometry)
end

When /changing geometry/ do
  @image.change_geometry(@geometry) do |cols, rows, image|
    @new_width  = cols
    @new_height = rows
  end
end

Then /the new width should be (\d+)/ do |value|
  @new_width.should eql(value.to_f)
end

Then /the new height should be (\d+)/ do |value|
  @new_height.should eql(value.to_f)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java test/spec/features/step_definitions/geometry_steps.rb
rmagick4j-0.3.9-java test/spec/features/step_definitions/geometry_steps.rb
rmagick4j-0.3.8 test/spec/features/step_definitions/geometry_steps.rb