BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
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