Skip to content

Commit

Permalink
removed the google legal info
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Feb 23, 2010
1 parent c22c38b commit d7d8ca1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 17 deletions.
1 change: 1 addition & 0 deletions app/controllers/operate_form_controller.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def show


doc = Nokogiri::HTML(form_html) doc = Nokogiri::HTML(form_html)
doc.xpath("//*[@style]").remove_attr('style') doc.xpath("//*[@style]").remove_attr('style')
doc.xpath("//*[@class='ss-legal']").each { |n| n.unlink }
doc.xpath("//link").each { |n| n.unlink } doc.xpath("//link").each { |n| n.unlink }
doc.xpath("//style").each { |n| n.unlink } doc.xpath("//style").each { |n| n.unlink }


Expand Down
17 changes: 0 additions & 17 deletions app/views/layouts/google_forms.html.erb

This file was deleted.

1 change: 1 addition & 0 deletions features/filling_in_form.feature
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Feature: Filling in form
Given I have a Google Form with slug "railsdev" Given I have a Google Form with slug "railsdev"
And I am on "/railsdev" And I am on "/railsdev"
And I should see no "style" attributes 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 no "style" elements
Then I should see 1 "link" element Then I should see 1 "link" element
When I fill in "Text Question" with "My Answer" When I fill in "Text Question" with "My Answer"
Expand Down
4 changes: 4 additions & 0 deletions features/step_definitions/web_steps_ext.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
page.should_not have_xpath("//*[@#{attribute}]") page.should_not have_xpath("//*[@#{attribute}]")
end end


Given /^I should see no "([^\"]*)" classes$/ do |klass|
page.should_not have_xpath("//*[@class='#{klass}']")
end

Empty file added tmp/restart.txt
Empty file.

0 comments on commit d7d8ca1

Please sign in to comment.