Skip to content

Commit 60d3bb3

Browse files
committed
Use described_class method in specs
1 parent ec557b4 commit 60d3bb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/helpers/paginator/integer_paginator_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'spec_helper'
22

33
describe Pliny::Helpers::Paginator::IntegerPaginator do
4-
subject { Pliny::Helpers::Paginator::IntegerPaginator.new(sinatra, count, opts) }
4+
subject { described_class.new(sinatra, count, opts) }
55
let(:dummy_class) { Class.new { include Pliny::Helpers::Paginator } }
66
let(:sinatra) { dummy_class.new }
77
let(:count) { 4 }

spec/helpers/paginator/paginator_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'spec_helper'
22

33
describe Pliny::Helpers::Paginator::Paginator do
4-
subject { Pliny::Helpers::Paginator::Paginator.new(sinatra, count, opts) }
4+
subject { described_class.new(sinatra, count, opts) }
55
let(:dummy_class) { Class.new { include Pliny::Helpers::Paginator } }
66
let(:sinatra) { dummy_class.new }
77
let(:count) { 4 }

0 commit comments

Comments
 (0)