Skip to content

Instantly share code, notes, and snippets.

@edzhelyov
Created January 6, 2012 12:21
Show Gist options
  • Save edzhelyov/1570352 to your computer and use it in GitHub Desktop.
Save edzhelyov/1570352 to your computer and use it in GitHub Desktop.
simple integration test
require 'test_helper'
class AnalyticsTaggingTest < ActionDispatch::IntegrationTest
include Capybara::DSL
context "The header of the page" do
should "include tracking meta tag" do
visit('/')
assert page.has_selector?('meta[charset="utf-8"]')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment