Skip to content

Commit

Permalink
change tokenised to token
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Stigley committed Feb 14, 2018
1 parent 57337bd commit de3c28a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/supplejack_common/paginated_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def paginated?
end

def tokenised?
@type == 'tokenised'
@type == 'token'
end

def yield_from_records(&block)
Expand Down
4 changes: 2 additions & 2 deletions spec/supplejack_common/paginated_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
context "tokenised pagination" do
let(:params) { {
page_parameter: "page-parameter",
type: "tokenised",
type: "token",
per_page_parameter: "per_page",
per_page: 5,
next_page_token_location: "next_page_token",
Expand All @@ -122,7 +122,7 @@
context "with initial parameter" do
let(:params) { {
page_parameter: "page-parameter",
type: "tokenised",
type: "token",
initial_param: 'initial-paramater=true'
}}
let(:collection) { klass.new(SupplejackCommon::Base, params, {limit: 1}) }
Expand Down

0 comments on commit de3c28a

Please sign in to comment.