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.33 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.31 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.30 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.29 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.28 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.27 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.26 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.25 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.24 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.23 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.22 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.21 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.20 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.19 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.18 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.17 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.16 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.15 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.14 spec/models/brightcontent/attachable_spec.rb
brightcontent-attachments-2.0.13 spec/models/brightcontent/attachable_spec.rb