Sha256: d48b2e3b3bd2c523336339b30aeec818d875764e1f2bb943ae670bb1baea6a9a
Contents?: true
Size: 614 Bytes
Versions: 3
Compression:
Stored size: 614 Bytes
Contents
steps_for(:geometry) do Given("a new Image sized $width x $height") do |width, height| @image = Image.new(width.to_i, height.to_i) end Given("a new Geometry from string $geometry") 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 $value") do |value| @new_width.should eql(value.to_f) end Then("the new height should be $value") do |value| @new_height.should eql(value.to_f) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rmagick4j-0.3.5 | test/spec/stories/geometry_steps.rb |
rmagick4j-0.3.7 | test/spec/stories/geometry_steps.rb |
rmagick4j-0.3.6 | test/spec/stories/geometry_steps.rb |