Sha256: d37007f9ee319e54eba73a5dfbc91515c0b9ffdb6590acdf5dbc68ed34601dd6

Contents?: true

Size: 404 Bytes

Versions: 26

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'

module Brightcontent
  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 .attachment method" do
      Blog.new.should respond_to :attachment
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
brightcontent-attachments-2.0.12 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.11 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.10 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.9 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.8 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.7 spec/models/brightcontent/attachable_spec.rb