Skip to content

Instantly share code, notes, and snippets.

@marsbomber
Created July 20, 2012 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marsbomber/3148406 to your computer and use it in GitHub Desktop.
Save marsbomber/3148406 to your computer and use it in GitHub Desktop.
Spec failing on CI
require 'spec_helper'
describe "RequestsDashboard", js: true do
let!(:req_processing_one) { create(:request, state: "processing", url: "processing-job-url-1") }
context "Processing requests" do
it "displays request details modal" do
find(:xpath, "//a[@href='#{job_request_admin_request_path(req_processing_one)}']").click
# this is passing on
# Local dev (OSX)
# CI server (Gentoo) as a single spec
# CI server (Gentoo) running as part of a test suite
find(:xpath, "//dd").should have_content req_processing_one.id
# this is passing on
# Local dev (OSX)
# CI server (Gentoo) as a single spec
# this is FAILING on
# CI server (Gentoo) running as part of a test suite with the following error
# Failure/Error: find(:xpath, "//dd").text.should have_content req_processing_one.id
# expected there to be content "5008ca2ce2544a68f8000038" in "127.0.0.1"
# find(:xpath, "//dd").text.should have_content req_processing_one.id
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment