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.1.3 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.1.2 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.1.1 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.1.0 spec/models/brightcontent/attachable_spec.rb