Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
201702b7
Commit
201702b7
authored
Feb 17, 2012
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style fix
parent
f19393cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test/url_generator_test.rb
+8
-8
No files found.
test/url_generator_test.rb
View file @
201702b7
...
...
@@ -77,7 +77,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
end
.
new
mock_attachment
=
MockAttachment
.
new
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{
:escape
=>
true
})
...
...
@@ -89,7 +89,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
expected
=
"the expected result"
mock_attachment
=
MockAttachment
.
new
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{
:escape
=>
false
})
...
...
@@ -101,7 +101,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
expected
=
"the expected result"
mock_attachment
=
MockAttachment
.
new
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{})
...
...
@@ -113,7 +113,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
expected
=
"the expected result"
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
mock_attachment
=
MockAttachment
.
new
(
:responds_to_updated_at
=>
false
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{
:timestamp
=>
true
})
...
...
@@ -125,7 +125,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
expected
=
"the expected result"
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
mock_attachment
=
MockAttachment
.
new
(
:responds_to_updated_at
=>
true
,
:updated_at
=>
nil
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{
:timestamp
=>
true
})
...
...
@@ -138,7 +138,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
updated_at
=
1231231234
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
mock_attachment
=
MockAttachment
.
new
(
:updated_at
=>
updated_at
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{
:timestamp
=>
true
})
...
...
@@ -151,7 +151,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
updated_at
=
1231231234
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
mock_attachment
=
MockAttachment
.
new
(
:updated_at
=>
updated_at
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{
:timestamp
=>
true
})
...
...
@@ -164,7 +164,7 @@ class UrlGeneratorTest < Test::Unit::TestCase
updated_at
=
1231231234
mock_interpolator
=
MockInterpolator
.
new
(
:result
=>
expected
)
mock_attachment
=
MockAttachment
.
new
(
:updated_at
=>
updated_at
)
options
=
{
:interpolator
=>
mock_interpolator
}
options
=
{
:interpolator
=>
mock_interpolator
}
url_generator
=
Paperclip
::
UrlGenerator
.
new
(
mock_attachment
,
options
)
result
=
url_generator
.
for
(
:style_name
,
{
:timestamp
=>
false
})
...
...
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