Sha256: eafea740daac7352a1722b0d0f4fe6705170b63ce53b9c427521071f9df05676

Contents?: true

Size: 451 Bytes

Versions: 24

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
brightcontent-attachments-2.6.0 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.5.1 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.5.0 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.4.6 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.4.5 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.4.4 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.4.3 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.4.2 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.4.1 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.4.0 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.3.4 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.3.3 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.3.2 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.3.1 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.3.0 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.2.2 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.2.1 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.2.0 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.1.5 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.1.4 spec/models/brightcontent/attachable_spec.rb