Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a0f58500
Commit
a0f58500
authored
Mar 19, 2018
by
haseeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed creating project
parent
9a304721
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
spec/features/snippets/embedded_snippet_spec.rb
spec/features/snippets/embedded_snippet_spec.rb
+3
-4
No files found.
spec/features/snippets/embedded_snippet_spec.rb
View file @
a0f58500
require
'spec_helper'
describe
'Embedded Snippets'
do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:snippet
)
{
create
(
:personal_snippet
,
:public
,
file_name:
'popen.rb'
,
content:
content
)
}
let
(
:content
)
{
project
.
repository
.
blob_at
(
'master'
,
'files/ruby/popen.rb'
).
data
}
let
(
:snippet
)
{
create
(
:personal_snippet
,
:public
,
file_name:
'random_dir.rb'
,
content:
content
)
}
let
(
:content
)
{
"require 'fileutils'
\n
FileUtils.mkdir_p 'some/random_dir'
\n
"
}
it
'loads snippet'
,
:js
do
script_url
=
"http://
#{
Capybara
.
current_session
.
server
.
host
}
:
#{
Capybara
.
current_session
.
server
.
port
}
/
#{
snippet_path
(
snippet
,
format:
'js'
)
}
"
...
...
@@ -18,7 +17,7 @@ describe 'Embedded Snippets' do
visit
(
"http://
#{
server
.
host
}
:
#{
server
.
port
}
/embedded_snippet.html"
)
expect
(
page
).
to
have_content
(
"
popen
.rb"
)
expect
(
page
).
to
have_content
(
"
random_dir
.rb"
)
expect
(
page
).
to
have_content
(
"require 'fileutils'"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment