spec/aliyun_spec.rb in carrierwave-aliyun-0.3.4 vs spec/aliyun_spec.rb in carrierwave-aliyun-0.3.5
- old
+ new
@@ -38,6 +38,14 @@
@opts[:aliyun_host] = "http://foo.bar.com"
@connection = CarrierWave::Storage::Aliyun::Connection.new(@opts)
url = @connection.put("a/a.jpg",load_file("foo.jpg"))
url.should == "http://foo.bar.com/a/a.jpg"
end
+
+ describe 'File' do
+ it 'should have respond_to identifier' do
+ f = CarrierWave::Storage::Aliyun::File.new(nil, nil, nil)
+ f.should respond_to(:identifier)
+ f.should respond_to(:filename)
+ end
+ end
end