spec/github/pagination/iterator/number_spec.rb in github_api-0.10.2 vs spec/github/pagination/iterator/number_spec.rb in github_api-0.11.0

- old
+ new

@@ -11,11 +11,11 @@ let(:next_link) { "https://api.github.com/users/wycats/repos?page=4&per_page=20" } let(:prev_link) { "https://api.github.com/users/wycats/repos?page=2&per_page=20" } let(:last_link) { "https://api.github.com/users/wycats/repos?page=6&per_page=20" } let(:current_api) { Github::Repos.new } - let(:user) { 'wycats' } - let(:response) { stub(:response).as_null_object } + let(:user) { 'wycats' } + let(:response) { double(:response).as_null_object } subject(:instance) { described_class.new(links, current_api) } before { instance.stub(:has_next?).and_return true