add-to-org 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/add-to-org/version.rb +1 -1
- data/lib/add-to-org/views/success.erb +1 -1
- data/spec/add-to-org_spec.rb +3 -1
- data/spec/spec_helper.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82b5c39679b1c2a027a7e88d6e89ac6f2bb51943
|
4
|
+
data.tar.gz: dfed027da8d511c120088cfaf1499f57d7e8323b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da885134a8f2dae8e38fdeda232e35ddc30476a5664770b5e894a7c32ce385e98e1cb3d29da71ce7627fb0180a419fc53249233ea9846879adfcb5d7695c0b89
|
7
|
+
data.tar.gz: 9c6b02fce59bdcc578a83804b72880d70ea2d6f58088abe7acccafd8cd24781766601ac3a48cff5a795d78b1199cef81c64af8145bd940270bc65542f3552884
|
data/lib/add-to-org/version.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
</head>
|
7
7
|
<body>
|
8
8
|
<h1>You're all set</h1>
|
9
|
-
<p class="lead">You simply need to <a href="https://github.com/orgs/<%=
|
9
|
+
<p class="lead">You simply need to <a href="https://github.com/orgs/<%= org_id %>/invitation?return_to=<%= ERB::Util.html_escape(redirect) %>">confirm your invitation to join the organization</a> on GitHub.</p>
|
10
10
|
<p>Once confirmed, you will have access to <a href="<%= ERB::Util.html_escape(redirect) %>"><%= ERB::Util.html_escape(redirect) %></a>, the requested URL.</h1>
|
11
11
|
</body>
|
12
12
|
</html>
|
data/spec/add-to-org_spec.rb
CHANGED
@@ -79,10 +79,12 @@ describe "logged in user" do
|
|
79
79
|
stub = stub_request(:put, "https://api.github.com/teams/memberships/benbaltertest").
|
80
80
|
to_return(:status => 204)
|
81
81
|
|
82
|
-
get "/"
|
82
|
+
get "/foo"
|
83
83
|
expect(stub).to have_been_requested
|
84
84
|
expect(last_response.status).to eql(200)
|
85
85
|
expect(last_response.body).to match(/confirm your invitation to join the organization/)
|
86
|
+
expect(last_response.body).to match(/https:\/\/github.com\/orgs\/some_org\/invitation/)
|
87
|
+
expect(last_response.body).to match(/\?return_to=https:\/\/github.com\/foo/)
|
86
88
|
end
|
87
89
|
end
|
88
90
|
|
data/spec/spec_helper.rb
CHANGED