spec/lib/sources/delicious_spec.rb in picky-0.12.1 vs spec/lib/sources/delicious_spec.rb in picky-0.12.2
- old
+ new
@@ -44,23 +44,23 @@
delicious = stub :delicious, :posts_recent => [post1]
WWW::Delicious.should_receive(:new).and_return delicious
end
it "should yield the right data" do
- field = stub :b, :name => :tags
- @source.harvest :anything, field do |id, token|
+ category = stub :b, :from => :tags
+ @source.harvest :anything, category do |id, token|
[id, token].should == [1, "barefoot running shoe"]
end
end
it "should yield the right data" do
- field = stub :b, :name => :title
- @source.harvest :anything, field do |id, token|
+ category = stub :b, :from => :title
+ @source.harvest :anything, category do |id, token|
[id, token].should == [1, "VIBRAM - FiveFingers"]
end
end
it "should yield the right data" do
- field = stub :b, :name => :url
- @source.harvest :anything, field do |id, token|
+ category = stub :b, :from => :url
+ @source.harvest :anything, category do |id, token|
[id, token].should == [1, "http://www.vibramfivefingers.it/"]
end
end
end
describe "get_data" do
\ No newline at end of file