Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Created July 19, 2013 14:31
Show Gist options
  • Save leviwilson/6039505 to your computer and use it in GitHub Desktop.
Save leviwilson/6039505 to your computer and use it in GitHub Desktop.
RSpec::Matchers.define :go_away do
match do |screen|
begin
RAutomation::WaitHelper.wait_until { !screen.present? }
rescue
raise "Expected #{screen.class} to go away but it is still present"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment