enju_biblio 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 660c814a7986218b1d0596fabc0a69380ef45868369876cab23146320cd23a7d
4
- data.tar.gz: 7877f67fa317d44207e4dd6f03bfc15b4d50b92732079b21bb96c638c85fb10f
3
+ metadata.gz: 14cf69a7672b13c89901dff244c8bdee230a07559357dff1f201e9c3a1357e65
4
+ data.tar.gz: a65e04a7a889cc94e6c384443a56949494540c94efdcf79d1bb81a6fd212862e
5
5
  SHA512:
6
- metadata.gz: 8595968e7ada885d7d36691b4f250f3ecbe5bb03240317ab54e59da82cd13defe25f3cc04098fc6c315d8413bfc498eb91a0718118085bacaca62e727ae09ed4
7
- data.tar.gz: 580969dc61c3aacbdacd8e0e062c88edd7467abe768c361852d296d82b39ef386d1b70df4b5302bd45175b8c10f6206563f4dac843526295d2a2ccaa008b4ac2
6
+ metadata.gz: 4c7432c6014d1fe4943d137598c16c83048252d2d65eda23fe235d222bff97e00886f407ba1b6d003d287ef3e706df5b56f360d7e5f11560a134bafdb02b5828
7
+ data.tar.gz: 0aa1a8a22c15e84486894ca72a97eef72eb5fea69572cc81cb825cf5e51e255c79515d89b4b952e56c65b20644c99eb2b970d0f95db8458c53a946a1b24c0fab
@@ -24,7 +24,7 @@ class PictureFile < ApplicationRecord
24
24
  validates_associated :picture_attachable
25
25
  default_scope { order('picture_files.position') }
26
26
  # http://railsforum.com/viewtopic.php?id=11615
27
- acts_as_list scope: 'picture_attachable_type=\'#{picture_attachable_type}\''
27
+ acts_as_list scope: :picture_attachable
28
28
  strip_attributes only: :picture_attachable_type
29
29
 
30
30
  paginates_per 10
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.3.15".freeze
2
+ VERSION = "0.3.16".freeze
3
3
  end
@@ -1,8 +1,14 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  describe PictureFile do
4
- # pending "add some examples to (or delete) #{__FILE__}"
4
+ fixtures :all
5
5
 
6
+ it "should move position" do
7
+ picture_file = PictureFile.find(1)
8
+ expect(picture_file.first?).to be_truthy
9
+ picture_file.move_lower
10
+ expect(picture_file.last?).to be_truthy
11
+ end
6
12
  end
7
13
 
8
14
  # == Schema Information
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-29 00:00:00.000000000 Z
11
+ date: 2022-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_library