Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Created November 19, 2013 14:47
Show Gist options
  • Save simkimsia/7546421 to your computer and use it in GitHub Desktop.
Save simkimsia/7546421 to your computer and use it in GitHub Desktop.
expected "<!DOCTYPE html>\n<html>\n
<head>\n<title>Rotten Potatoes!</title>\n<link href=\"/assets/application.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n<script src=\"/assets/application.js\" type=\"text/javascript\">
</script>\n\n</head>\n<body>\n<h1 class='title'>Rotten Potatoes!</h1>\n<div id='main'>\n<h1>All Movies</h1>\n<form accept-charset=\"UTF-8\" action=\"/movies\" id=\"ratings_form\" method=\"get\"><div style=\"margin:0;padding:0;display:inline\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /></div>\n<input id=\"title_sort\" name=\"title_sort\" type=\"hidden\" value=\"true\" />\n\nInclude:\nG\n<input checked=\"checked\" id=\"ratings_G\" name=\"ratings[G]\" type=\"checkbox\" value=\"1\" />\nPG\n<input checked=\"checked\" id=\"ratings_PG\" name=\"ratings[PG]\" type=\"checkbox\" value=\"1\" />\nPG-13\n<input checked=\"checked\" id=\"ratings_PG-13\" name=\"ratings[PG-13]\" type=\"checkbox\" value=\"1\" />\nNC-17\n<input checked=\"checked\" id=\"ratings_NC-17\" name=\"ratings[NC-17]\" type=\"checkbox\" value=\"1\" />\nR\n<input checked=\"checked\" id=\"ratings_R\" name=\"ratings[R]\" type=\"checkbox\" value=\"1\" />\n<input id=\"ratings_submit\" name=\"commit\" type=\"submit\" value=\"Refresh\" />\n</form>\n\n<table id='movies'>\n<thead>\n<tr>\n<th class='hilite'><a href=\"/movies?ratings%5BG%5D=G&amp;ratings%5BNC-17%5D=NC-17&amp;ratings%5BPG%5D=PG&amp;ratings%5BPG-13%5D=PG-13&amp;ratings%5BR%5D=R&amp;sort=title\" id=\"title_header\">Movie Title</a></th>\n<th>Rating</th>\n<th><a href=\"/movies?ratings%5BG%5D=G&amp;ratings%5BNC-17%5D=NC-17&amp;ratings%5BPG%5D=PG&amp;ratings%5BPG-13%5D=PG-13&amp;ratings%5BR%5D=R&amp;sort=release_date\" id=\"release_date_header\">Release Date</a></th>\n<th>More Info</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>2001: A Space Odyssey</td>\n<td>G</td>\n<td>1968-04-06 00:00:00 UTC</td>\n<td><a href=\"/movies/7\">More about 2001: A Space Odyssey</a></td>\n</tr>\n<tr>\n<td>Aladdin</td>\n<td>G</td>\n<td>1992-11-25 00:00:00 UTC</td>\n<td><a href=\"/movies/1\">More about Aladdin</a></td>\n</tr>\n<tr>\n<td>Amelie</td>\n<td>R</td>\n<td>2001-04-25 00:00:00 UTC</td>\n<td><a href=\"/movies/6\">More about Amelie</a></td>\n</tr>\n<tr>\n<td>Chicken Run</td>\n<td>G</td>\n<td>2000-06-21 00:00:00 UTC</td>\n<td><a href=\"/movies/10\">More about Chicken Run</a></td>\n</tr>\n<tr>\n<td>Chocolat</td>\n<td>PG-13</td>\n<td>2001-01-05 00:00:00 UTC</td>\n<td><a href=\"/movies/5\">More about Chocolat</a></td>\n</tr>\n<tr>\n<td>Raiders of the Lost Ark</td>\n<td>PG</td>\n<td>1981-06-12 00:00:00 UTC</td>\n<td><a href=\"/movies/9\">More about Raiders of the Lost Ark</a></td>\n</tr>\n<tr>\n<td>The Help</td>\n<td>PG-13</td>\n<td>2011-08-10 00:00:00 UTC</td>\n<td><a href=\"/movies/4\">More about The Help</a></td>\n</tr>\n<tr>\n<td>The Incredibles</td>\n<td>PG</td>\n<td>2004-11-05 00:00:00 UTC</td>\n<td><a href=\"/movies/8\">More about The Incredibles</a></td>\n</tr>\n<tr>\n<td>The Terminator</td>\n<td>R</td>\n<td>1984-10-26 00:00:00 UTC</td>\n<td><a href=\"/movies/2\">More about The Terminator</a></td>\n</tr>\n<tr>\n<td>When Harry Met Sally</td>\n<td>R</td>\n<td>1989-07-21 00:00:00 UTC</td>\n<td><a href=\"/movies/3\">More about When Harry Met Sally</a></td>\n</tr>\n</tbody>\n</table>\n<a href=\"/movies/new\">Add new movie</a>\n\n</div>\n</body>\n</html>\n" to match /Aladdin.*The Help/ (RSpec::Expectations::ExpectationNotMetError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment