Skip to content

Instantly share code, notes, and snippets.

@worker8
Created October 8, 2013 03:15
Show Gist options
  • Select an option

  • Save worker8/6878908 to your computer and use it in GitHub Desktop.

Select an option

Save worker8/6878908 to your computer and use it in GitHub Desktop.
require 'spec_helper'
# fake class
class ImageFake
end
describe "Image helper" do
@sizes = [[300,400], [500,600], [700,800]]
before :all do
@image = ImageFake.new
end
@sizes.each do |width, height|
context "desired image is #{width} x #{height}" do
it "should produce an image of the correct size" do
puts "#{width} x #{height}"
puts "#{@image.class}"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment