spec/nationbuilder_paginator_spec.rb in nationbuilder-rb-1.2.0 vs spec/nationbuilder_paginator_spec.rb in nationbuilder-rb-1.2.1
- old
+ new
@@ -1,8 +1,8 @@
require 'spec_helper'
-describe Paginator do
+describe NationBuilder::Paginator do
let(:client) do
NationBuilder::Client.new('organizeralexandreschmitt',
'53920a524356034a065515a37650df2bd295971975d5742b9daa50eb8c7404d5')
end
@@ -12,10 +12,10 @@
end
end
describe '#pagination' do
before do
- @page1 = Paginator.new(client, response)
+ @page1 = NationBuilder::Paginator.new(client, response)
@page2 = VCR.use_cassette('paginated_get_page2') { @page1.next }
end
it 'should check for next and prev page link' do
expect(@page1.next?).to_not be_nil