Skip to content

Commit 993b4eb

Browse files
committed
Fix test cases
1 parent 0aae7f6 commit 993b4eb

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

spec/plugins/filter/image_source_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Author:: kzgs
44
# 774 <http://id774.net>
55
# Created:: Mar 1, 2012
6-
# Updated:: Jun 14, 2012
7-
# Copyright:: Copyright (c) 2012-2013 Automatic Ruby Developers.
6+
# Updated:: Feb 21, 2014
7+
# Copyright:: Copyright (c) 2012-2014 Automatic Ruby Developers.
88
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
99

1010
require File.expand_path(File.dirname(__FILE__) + '../../../spec_helper')
@@ -25,7 +25,7 @@
2525
its(:run) { should have(1).feeds }
2626
specify {
2727
subject.run
28-
subject.instance_variable_get(:@pipeline)[0].items[0].link.
28+
subject.instance_variable_get(:@return_feeds)[0].items[0].link.
2929
should == "http://27.media.tumblr.com/tumblr_lzrubkfPlt1qb8vzto1_500.png"
3030
}
3131
end
@@ -46,7 +46,7 @@
4646
its(:run) { should have(1).feeds }
4747
specify {
4848
subject.run
49-
subject.instance_variable_get(:@pipeline)[0].items[0].link.
49+
subject.instance_variable_get(:@return_feeds)[0].items[0].link.
5050
should == "http://24.media.tumblr.com/tumblr_m07wttnIdy1qzoj1jo1_400.jpg"
5151
}
5252
end
@@ -65,13 +65,13 @@
6565

6666
describe "#run" do
6767
before do
68-
subject.stub!(:rewrite_link).and_return(['http://huge.png'])
68+
subject.stub(:rewrite_link).and_return(['http://huge.png'])
6969
end
7070

7171
its(:run) { should have(1).feeds }
7272
specify {
7373
subject.run
74-
subject.instance_variable_get(:@pipeline)[0].items[0].link.
74+
subject.instance_variable_get(:@return_feeds)[0].items[0].link.
7575
should == 'http://huge.png'
7676
}
7777
end
@@ -80,7 +80,7 @@
8080
before do
8181
open = Hashie::Mash.new
8282
open.read = '<img src="http://a.png"><br /><img src="http://b.png">'
83-
subject.stub!(:open).and_return(open)
83+
subject.stub(:open).and_return(open)
8484
end
8585

8686
its(:run) { subject.run[0].items.length.should == 2 }

0 commit comments

Comments
 (0)