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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
0453d6d7
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/models/blob.rb
app/models/blob.rb
+1
-1
spec/features/projects/blobs/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
end
def
balsamiq?
binary?
&&
ext
name
.
downcase
.
delete
(
'.'
)
==
'bmpr'
binary?
&&
ext
ension
==
'bmpr'
end
def
stl?
...
...
spec/features/projects/blobs/balsamiq_preview_spec.rb
View file @
0453d6d7
...
...
@@ -7,7 +7,6 @@ feature 'Balsamiq preview', :feature, :js do
let
(
:project
)
{
create
(
:project
)
}
let
(
:branch
)
{
'add-balsamiq-file'
}
let
(
:path
)
{
'files/images/balsamiq.bmpr'
}
let
(
:file_content
)
{
find
(
'.file-content'
)
}
before
do
project
.
add_master
(
user
)
...
...
@@ -16,7 +15,7 @@ feature 'Balsamiq preview', :feature, :js do
end
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
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