punching_bag 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -104,4 +104,16 @@ describe Punch do
104
104
  end
105
105
  end
106
106
  end
107
+
108
+ describe '.combine_by' do
109
+ let(:combine_by) { -> { Punch.combine_by(:day, article) } }
110
+
111
+ context 'with one punch' do
112
+ let!(:punch) { Punch.create punchable: article }
113
+
114
+ it 'does nothing' do
115
+ expect { combine_by.call }.to_not change { punch }
116
+ end
117
+ end
118
+ end
107
119
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punching_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties