Sha256: 1fd132e9f0ebfdcca0ea51dd5c81ee1afadc52ed872c45fb0a7e84b0ccfeba29

Contents?: true

Size: 530 Bytes

Versions: 15

Compression:

Stored size: 530 Bytes

Contents

require 'spec_helper'

module Brightcontent
  describe Attachment do
    subject(:attachment) { Attachment.new }

    describe ".attachment_styles" do
      context "without extra options" do
        its(:attachment_styles) { should == { brightcontent: "100x100#" } }
      end
      context "with extra options" do
        let(:blog) { build_stubbed(:blog) }
        before { attachment.attachable = blog }

        its(:attachment_styles) { should == { test: "200x200", brightcontent: "100x100#" } }
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
brightcontent-attachments-2.0.22 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.21 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.20 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.19 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.18 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.17 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.16 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.15 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.14 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.13 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.12 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.11 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.10 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.9 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.8 spec/models/brightcontent/attachment_spec.rb