Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly replace cdata node in hpricot
improve: if user has error include appengine gems, do not import appengine agent
- Loading branch information
Showing
5 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'test/unit' | ||
require "#{File.dirname(__FILE__)}/../lib/fullfeed" | ||
require 'load_files' | ||
|
||
class TestDbStore < Test::Unit::TestCase | ||
Fullfeed::Store::DbStore.setup("sqlite3:ynews.sqlite3") | ||
|
||
def test_store | ||
store = Fullfeed::Store::StoreFactory.store('http://test', 100, :db) | ||
|
||
value = rand().to_s | ||
store['/100'] = value | ||
assert_equal store['/100'], value | ||
|
||
value = "中文測試" | ||
store['/200'] = value | ||
assert_equal store['/200'], value | ||
end | ||
end |