Feature: Generating SVG clowncars during preview mode Scenario: Basic command Given a fixture app "automatic-clowncar-app" And a file named "source/index.html.erb" with: """ <%= automatic_clowncar_tag "photos/test-image.jpg", :host => "http://localhost:4567/" %> """ Given a successfully built app at "automatic-clowncar-app" with flags "--verbose" When I cd to "build" #Then the following files should not exist: # | images/photos/test-image.jpg | Then the following files should exist: | images/photos/test-image/test-image-small.jpg | | images/photos/test-image/test-image-medium.jpg | | images/photos/test-image/test-image-large.jpg | Then the file "index.html" should contain " { :small => 200, :medium => 400, :large => 600 }, :namespace_directory => %w(photos) activate :asset_host, :host => "http://localhost:4567/" """ And a file named "source/index.html.erb" with: """ <%= automatic_clowncar_tag "photos/test-image.jpg" %> """ Given a successfully built app at "automatic-clowncar-app" with flags "--verbose" When I cd to "build" #Then the following files should not exist: # | images/photos/test-image.jpg Then the following files should exist: | images/photos/test-image/test-image-small.jpg | | images/photos/test-image/test-image-medium.jpg | | images/photos/test-image/test-image-large.jpg | Then the file "index.html" should contain " "http://localhost:4567/", :fallback => true %> """ Given a successfully built app at "automatic-clowncar-app" with flags "--verbose" When I cd to "build" #Then the following files should not exist: # | images/photos/test-image.jpg Then the following files should exist: | images/photos/test-image/test-image-small.jpg | | images/photos/test-image/test-image-medium.jpg | | images/photos/test-image/test-image-large.jpg | Then the file "index.html" should contain "" And the file "index.html" should contain '' And the file "index.html" should contain ""