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
ad23a0f8
Commit
ad23a0f8
authored
Jul 08, 2014
by
Jordan Jennings
Committed by
Jon Yurek
Jul 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addressing issue #1593, removing calls to rebuild class
parent
d8701fb5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
spec/paperclip/schema_spec.rb
+0
-8
No files found.
spec/paperclip/schema_spec.rb
View file @
ad23a0f8
...
...
@@ -24,7 +24,6 @@ describe Paperclip::Schema do
t
.
has_attached_file
:avatar
end
end
rebuild_class
columns
=
Dummy
.
columns
.
map
{
|
column
|
[
column
.
name
,
column
.
type
]
}
...
...
@@ -48,7 +47,6 @@ describe Paperclip::Schema do
Dummy
.
connection
.
create_table
:dummies
,
force:
true
do
|
t
|
t
.
attachment
:avatar
end
rebuild_class
end
it
"creates attachment columns"
do
...
...
@@ -71,7 +69,6 @@ describe Paperclip::Schema do
context
"with single attachment"
do
before
do
Dummy
.
connection
.
add_attachment
:dummies
,
:avatar
rebuild_class
end
it
"creates attachment columns"
do
...
...
@@ -87,7 +84,6 @@ describe Paperclip::Schema do
context
"with multiple attachments"
do
before
do
Dummy
.
connection
.
add_attachment
:dummies
,
:avatar
,
:photo
rebuild_class
end
it
"creates attachment columns"
do
...
...
@@ -108,7 +104,6 @@ describe Paperclip::Schema do
it
"raises an error"
do
assert_raises
ArgumentError
do
Dummy
.
connection
.
add_attachment
:dummies
rebuild_class
end
end
end
...
...
@@ -132,7 +127,6 @@ describe Paperclip::Schema do
ActiveSupport
::
Deprecation
.
silence
do
Dummy
.
connection
.
drop_attached_file
:dummies
,
:avatar
end
rebuild_class
columns
=
Dummy
.
columns
.
map
{
|
column
|
[
column
.
name
,
column
.
type
]
}
...
...
@@ -153,7 +147,6 @@ describe Paperclip::Schema do
context
"with single attachment"
do
before
do
Dummy
.
connection
.
remove_attachment
:dummies
,
:avatar
rebuild_class
end
it
"removes the attachment columns"
do
...
...
@@ -176,7 +169,6 @@ describe Paperclip::Schema do
end
Dummy
.
connection
.
remove_attachment
:dummies
,
:avatar
,
:photo
rebuild_class
end
it
"removes the attachment columns"
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