Remove the unused decorator ProceduresDecorator
This commit is contained in:
parent
6565ce9c3c
commit
559df6b82a
2 changed files with 0 additions and 21 deletions
|
@ -1,3 +0,0 @@
|
|||
class ProceduresDecorator < Draper::CollectionDecorator
|
||||
delegate :current_page, :limit_value, :total_pages
|
||||
end
|
|
@ -1,18 +0,0 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe ProceduresDecorator do
|
||||
before do
|
||||
create(:procedure, :published, created_at: Time.zone.local(2015, 12, 24, 14, 10))
|
||||
create(:procedure, :published, created_at: Time.zone.local(2015, 12, 24, 14, 10))
|
||||
create(:procedure, :published, created_at: Time.zone.local(2015, 12, 24, 14, 10))
|
||||
end
|
||||
|
||||
let(:procedure) { Procedure.all.page(1) }
|
||||
|
||||
subject { procedure.decorate }
|
||||
|
||||
it { expect(subject.current_page).not_to be_nil }
|
||||
it { expect(subject.limit_value).not_to be_nil }
|
||||
it { expect(subject.count).to eq(3) }
|
||||
it { expect(subject.total_pages).not_to be_nil }
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue