gem 'rails', '3.1.1'
-gem 'activegroonga', '1.0.4'
+gem 'activegroonga', '1.0.7'
gem 'kaminari'
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.2)
- activegroonga (1.0.4)
- activemodel (>= 3.0.1)
- rroonga (>= 1.0.4)
+ activegroonga (1.0.7)
+ activemodel (>= 3.1.0)
+ rroonga
activegroonga-fabrication (1.0.0)
activegroonga
fabrication
activesupport (= 3.1.1)
activesupport (3.1.1)
multi_json (~> 1.0)
+ archive-zip (0.5.0)
+ io-like (>= 0.3.0)
arel (2.2.3)
builder (3.0.4)
diff-lcs (1.1.2)
hike (1.2.1)
i18n (0.6.1)
i18n_generators (1.0.3)
+ io-like (0.3.0)
json (1.7.6)
kaminari (0.12.4)
rails (>= 3.0.0)
treetop (~> 1.4.8)
mime-types (1.19)
multi_json (1.5.0)
- pkg-config (1.1.2)
+ pkg-config (1.1.4)
polyglot (0.3.3)
rack (1.3.6)
rack-cache (1.2)
rake (10.0.3)
rdoc (3.12)
json (~> 1.4)
- rroonga (1.2.4)
+ rroonga (2.1.1)
+ archive-zip
+ json
pkg-config
rspec (2.6.0)
rspec-core (~> 2.6.0)
ruby
DEPENDENCIES
- activegroonga (= 1.0.4)
+ activegroonga (= 1.0.7)
activegroonga-fabrication (= 1.0.0)
i18n_generators
kaminari
arc = Arc.new(:key => 'accs_0235', :extname => 'zip')
arc.number.should == 235
end
+end
+
+describe Arc, "#url" do
- let (:site_mmd) {
+ before do
Fabricate(:site, :key => 'mmd', :url => "http://bytatsu.net/uploader/mikumikudance/")
- }
- let (:site_mmdfile) {
Fabricate(:site, :key => 'mmdfile', :url => "http://loda.jp/mmdfile/")
- }
- let (:site_mmdacc1) {
Fabricate(:site, :key => 'mmdacc1', :url => "http://www9.atpages.jp/~mmdaccessory/uploader/")
- }
- let (:site_mmdacc2) {
Fabricate(:site, :key => 'mmdacc2', :url => "http://www9.atpages.jp/~mmdaccessory/uploader2/")
- }
- #
- # url
- #
+ end
+
it do
arc = Arc.create(:key => 'up0675', :site => 'mmd', :extname => 'zip')
arc.url.should == 'http://bytatsu.net/uploader/mikumikudance/src/up0675.zip'