Skip to content

Commit

Permalink
Use described_class method in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier committed Dec 29, 2014
1 parent ec557b4 commit 60d3bb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/helpers/paginator/integer_paginator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe Pliny::Helpers::Paginator::IntegerPaginator do
subject { Pliny::Helpers::Paginator::IntegerPaginator.new(sinatra, count, opts) }
subject { described_class.new(sinatra, count, opts) }
let(:dummy_class) { Class.new { include Pliny::Helpers::Paginator } }
let(:sinatra) { dummy_class.new }
let(:count) { 4 }
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/paginator/paginator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe Pliny::Helpers::Paginator::Paginator do
subject { Pliny::Helpers::Paginator::Paginator.new(sinatra, count, opts) }
subject { described_class.new(sinatra, count, opts) }
let(:dummy_class) { Class.new { include Pliny::Helpers::Paginator } }
let(:sinatra) { dummy_class.new }
let(:count) { 4 }
Expand Down

0 comments on commit 60d3bb3

Please sign in to comment.