Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
really fix spec ;)
  • Loading branch information
klacointe committed Dec 15, 2010
1 parent 4b695be commit f45f5e6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec/has_media_spec.rb
Expand Up @@ -50,19 +50,19 @@ class Prout < ActiveRecord::Base
end

it "should define accessors" do
@medium.methods.should include(:image)
@medium.methods.should include(:images)
@medium.methods.should include(:audio)
@medium.methods.should include(:audios)
@medium.methods.should include(:pdf)
@medium.methods.map{|m| m.to_sym}.should include(:image)
@medium.methods.map{|m| m.to_sym}.should include(:images)
@medium.methods.map{|m| m.to_sym}.should include(:audio)
@medium.methods.map{|m| m.to_sym}.should include(:audios)
@medium.methods.map{|m| m.to_sym}.should include(:pdf)
end

it "should define setters" do
@medium.methods.should include(:image=)
@medium.methods.should include(:images=)
@medium.methods.should include(:audio=)
@medium.methods.should include(:audios=)
@medium.methods.should include(:pdf=)
@medium.methods.map{|m| m.to_sym}.should include(:image=)
@medium.methods.map{|m| m.to_sym}.should include(:images=)
@medium.methods.map{|m| m.to_sym}.should include(:audio=)
@medium.methods.map{|m| m.to_sym}.should include(:audios=)
@medium.methods.map{|m| m.to_sym}.should include(:pdf=)
end

it "should associate image to mediated object" do
Expand Down

0 comments on commit f45f5e6

Please sign in to comment.