spec/models/brightcontent/attachable_spec.rb in brightcontent-attachments-2.0.33 vs spec/models/brightcontent/attachable_spec.rb in brightcontent-attachments-2.1.0
- old
+ new
@@ -1,16 +1,18 @@
require 'spec_helper'
module Brightcontent
- describe Attachable do
- subject { Blog }
- its(:brightcontent_columns) { should include "attachments" }
+ module Attachments
+ describe Attachable do
+ subject { Blog }
+ its(:brightcontent_columns) { should include "attachments" }
- it "should have a has_many relation to attachments" do
- Blog.reflect_on_association(:attachments).macro.should eq :has_many
- end
+ it "should have a has_many relation to attachments" do
+ Blog.reflect_on_association(:attachments).macro.should eq :has_many
+ end
- it "should have .attachment method" do
- Blog.new.should respond_to :attachment
+ it "should have .attachment method" do
+ Blog.new.should respond_to :attachment
+ end
end
end
end