has_media 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/spec/has_media_spec.rb +9 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/spec/has_media_spec.rb
CHANGED
@@ -3,6 +3,15 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|
3
3
|
describe "HasMedia" do
|
4
4
|
|
5
5
|
before :all do
|
6
|
+
# load models and uploaders examples
|
7
|
+
Dir.glob(File.dirname(__FILE__) + '/../examples/uploaders/*.rb').each do |uploader|
|
8
|
+
require uploader
|
9
|
+
end
|
10
|
+
|
11
|
+
Dir.glob(File.dirname(__FILE__) + '/../examples/models/*.rb').each do |model|
|
12
|
+
require model
|
13
|
+
end
|
14
|
+
|
6
15
|
class MediumRelatedTest < ActiveRecord::Base
|
7
16
|
include HasMedia
|
8
17
|
has_one_medium :image, :only => :image
|