|
3 | 3 | # Author:: kzgs |
4 | 4 | # 774 <http://id774.net> |
5 | 5 | # 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. |
8 | 8 | # License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. |
9 | 9 |
|
10 | 10 | require File.expand_path(File.dirname(__FILE__) + '../../../spec_helper') |
|
25 | 25 | its(:run) { should have(1).feeds } |
26 | 26 | specify { |
27 | 27 | subject.run |
28 | | - subject.instance_variable_get(:@pipeline)[0].items[0].link. |
| 28 | + subject.instance_variable_get(:@return_feeds)[0].items[0].link. |
29 | 29 | should == "http://27.media.tumblr.com/tumblr_lzrubkfPlt1qb8vzto1_500.png" |
30 | 30 | } |
31 | 31 | end |
|
46 | 46 | its(:run) { should have(1).feeds } |
47 | 47 | specify { |
48 | 48 | subject.run |
49 | | - subject.instance_variable_get(:@pipeline)[0].items[0].link. |
| 49 | + subject.instance_variable_get(:@return_feeds)[0].items[0].link. |
50 | 50 | should == "http://24.media.tumblr.com/tumblr_m07wttnIdy1qzoj1jo1_400.jpg" |
51 | 51 | } |
52 | 52 | end |
|
65 | 65 |
|
66 | 66 | describe "#run" do |
67 | 67 | before do |
68 | | - subject.stub!(:rewrite_link).and_return(['http://huge.png']) |
| 68 | + subject.stub(:rewrite_link).and_return(['http://huge.png']) |
69 | 69 | end |
70 | 70 |
|
71 | 71 | its(:run) { should have(1).feeds } |
72 | 72 | specify { |
73 | 73 | subject.run |
74 | | - subject.instance_variable_get(:@pipeline)[0].items[0].link. |
| 74 | + subject.instance_variable_get(:@return_feeds)[0].items[0].link. |
75 | 75 | should == 'http://huge.png' |
76 | 76 | } |
77 | 77 | end |
|
80 | 80 | before do |
81 | 81 | open = Hashie::Mash.new |
82 | 82 | 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) |
84 | 84 | end |
85 | 85 |
|
86 | 86 | its(:run) { subject.run[0].items.length.should == 2 } |
|
0 commit comments