We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103fb94 commit c9f8ff7Copy full SHA for c9f8ff7
tests/spec/features/sharing_with_others_spec.rb
@@ -1,5 +1,6 @@
1
require 'spec_helper'
2
require 'support/editor'
3
+require 'support/matchers/be_at_url'
4
require 'support/playground_actions'
5
6
RSpec.feature "Sharing the code with others", type: :feature, js: true do
@@ -23,6 +24,10 @@
23
24
direct_link = find_link("Direct link to the gist")[:href]
25
urlo_link = find_link("Open a new thread in the Rust user forum")[:href]
26
27
+ # Have we automatically added the gist to our URL?
28
+ gist_id = Addressable::URI.parse(perma_link).query_values['gist']
29
+ expect(page).to be_at_url('/', gist: gist_id)
30
+
31
# Navigate away so we can tell that we go back to the same page
32
visit 'about:blank'
33
0 commit comments