Skip to content

Instantly share code, notes, and snippets.

View holderbaum's full-sized avatar

Jakob Holderbaum holderbaum

View GitHub Profile
Feature: Serve Image
The service should return placholder of requested size and category.
Default size and default category should be used when either of them
is not provided.
Scenario: Serve image without any parameter
Given user wants a placeholder
When he requests the placeholder
Then an image is returned
mysql> select * from printings;
+-----------+-------------+------------+---------------------+---------------------+
| id | magazine_id | edition_id | created_at | updated_at |
+-----------+-------------+------------+---------------------+---------------------+
| 298486374 | NULL | NULL | 2011-07-08 17:28:06 | 2011-07-08 17:28:06 |
| 980190962 | NULL | NULL | 2011-07-08 17:28:06 | 2011-07-08 17:28:06 |
+-----------+-------------+------------+---------------------+---------------------+
require 'test_helper'
= f.label t 'research'
= select("article", "research_id", Research.all.map {|research| [ research.name , research.id ] }, :prompt => t 'select')