Permalink
Browse files

removed the google legal info

  • Loading branch information...
drnic committed Feb 23, 2010
1 parent c22c38b commit d7d8ca12768a245a7beb343affacbd02ccbae195
@@ -6,6 +6,7 @@ def show
doc = Nokogiri::HTML(form_html)
doc.xpath("//*[@style]").remove_attr('style')
+ doc.xpath("//*[@class='ss-legal']").each { |n| n.unlink }
doc.xpath("//link").each { |n| n.unlink }
doc.xpath("//style").each { |n| n.unlink }
@@ -1,17 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <title>GoogleForms: <%= controller.action_name %></title>
- <%= stylesheet_link_tag 'scaffold' %>
-</head>
-<body>
-
-<p style="color: green"><%= flash[:notice] %></p>
-
-<%= yield %>
-
-</body>
-</html>
@@ -7,6 +7,7 @@ Feature: Filling in form
Given I have a Google Form with slug "railsdev"
And I am on "/railsdev"
And I should see no "style" attributes
+ And I should see no "ss-legal" classes
Then I should see no "style" elements
Then I should see 1 "link" element
When I fill in "Text Question" with "My Answer"
@@ -13,3 +13,7 @@
page.should_not have_xpath("//*[@#{attribute}]")
end
+Given /^I should see no "([^\"]*)" classes$/ do |klass|
+ page.should_not have_xpath("//*[@class='#{klass}']")
+end
+
View
No changes.

0 comments on commit d7d8ca1

Please sign in to comment.