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
0453d6d7
Unverified
Commit
0453d6d7
authored
Apr 12, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BE review changes
parent
6d2db33d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
blob.rb
app/models/blob.rb
+1
-1
balsamiq_preview_spec.rb
spec/features/projects/blobs/balsamiq_preview_spec.rb
+1
-2
No files found.
app/models/blob.rb
View file @
0453d6d7
...
@@ -63,7 +63,7 @@ class Blob < SimpleDelegator
...
@@ -63,7 +63,7 @@ class Blob < SimpleDelegator
end
end
def
balsamiq?
def
balsamiq?
binary?
&&
ext
name
.
downcase
.
delete
(
'.'
)
==
'bmpr'
binary?
&&
ext
ension
==
'bmpr'
end
end
def
stl?
def
stl?
...
...
spec/features/projects/blobs/balsamiq_preview_spec.rb
View file @
0453d6d7
...
@@ -7,7 +7,6 @@ feature 'Balsamiq preview', :feature, :js do
...
@@ -7,7 +7,6 @@ feature 'Balsamiq preview', :feature, :js do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:branch
)
{
'add-balsamiq-file'
}
let
(
:branch
)
{
'add-balsamiq-file'
}
let
(
:path
)
{
'files/images/balsamiq.bmpr'
}
let
(
:path
)
{
'files/images/balsamiq.bmpr'
}
let
(
:file_content
)
{
find
(
'.file-content'
)
}
before
do
before
do
project
.
add_master
(
user
)
project
.
add_master
(
user
)
...
@@ -16,7 +15,7 @@ feature 'Balsamiq preview', :feature, :js do
...
@@ -16,7 +15,7 @@ feature 'Balsamiq preview', :feature, :js do
end
end
it
'should show a loading icon'
do
it
'should show a loading icon'
do
expect
(
fi
le_content
).
to
have_selector
(
'.loading'
)
expect
(
fi
nd
(
'.file-content'
)
).
to
have_selector
(
'.loading'
)
end
end
it
'should show a viewer container'
do
it
'should show a viewer container'
do
...
...
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