dynamic_paperclip 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ class DynamicAttachmentStylesTest < ActionDispatch::IntegrationTest
9
9
  path_to_dynamic_style = photo.image.path('dynamic_100x100')
10
10
 
11
11
  # This style should not exist yet
12
- assert !File.exists?(path_to_dynamic_style)
12
+ assert !File.exists?(path_to_dynamic_style), "style to be generated already exists"
13
13
 
14
14
  # The style should be created right now when we request it
15
15
  get photo.image.dynamic_url('100x100')
@@ -32,9 +32,9 @@ class AttachmentTest < ActiveSupport::TestCase
32
32
  should 'add dynamic style to #styles and reprocess it when a dynamic style name is passed to #process_dynamic_style' do
33
33
  attachment = photos(:rails).image
34
34
 
35
- attachment.expects(:reprocess!).with('dynamic_42x42').once
35
+ attachment.expects(:reprocess!).with(:dynamic_42x42).once
36
36
 
37
- attachment.process_dynamic_style 'dynamic_42x42'
37
+ attachment.process_dynamic_style '42x42'
38
38
 
39
39
  assert_equal '42x42', attachment.styles[:dynamic_42x42].geometry
40
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -106,6 +106,7 @@ files:
106
106
  - lib/dynamic_paperclip/errors.rb
107
107
  - lib/dynamic_paperclip/has_attached_file.rb
108
108
  - lib/dynamic_paperclip/paperclip_shim.rb
109
+ - lib/dynamic_paperclip/style_naming.rb
109
110
  - lib/dynamic_paperclip/url_security.rb
110
111
  - lib/dynamic_paperclip/version.rb
111
112
  - lib/dynamic_paperclip.rb