Skip to content

Commit b71e849

Browse files
committed
Renames LeagueScraper#parse_response to LeagueScraper#output
1 parent 7e30ee3 commit b71e849

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/bnet_scraper/starcraft2/league_scraper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def scrape
2626
@season, @size, @random, @division, @name = header_values
2727

2828
@random = !@random.nil?
29-
parse_response
29+
output
3030
end
3131

32-
def parse_response
32+
def output
3333
{
3434
season: @season,
3535
size: @size,

spec/starcraft2/league_scraper_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@
6161
subject.random.should be_false
6262
end
6363

64-
it 'should call parse_response' do
65-
subject.should_receive(:parse_response)
64+
it 'should call output' do
65+
subject.should_receive(:output)
6666
subject.scrape
6767
end
6868
end
6969

70-
describe '#parse_response' do
70+
describe '#output' do
7171
it 'should return a hash of league data' do
7272
expected = {
7373
season: '6',
@@ -80,7 +80,7 @@
8080
}
8181

8282
subject.scrape
83-
subject.parse_response.should == expected
83+
subject.output.should == expected
8484
end
8585
end
8686
end

0 commit comments

Comments
 (0)