Created
October 8, 2013 03:15
-
-
Save worker8/6878908 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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