Sha256: ad3eb80b563bde91db965d6d784ea0bbd06fad65e59d52951e7b41ab98bfff91

Contents?: true

Size: 568 Bytes

Versions: 7

Compression:

Stored size: 568 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#", main: "200x200#" } }
      end
      context "with extra options" do
        let(:blog) { build_stubbed(:blog) }
        before { attachment.attachable = blog }

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
brightcontent-attachments-2.0.29 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.28 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.27 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.26 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.25 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.24 spec/models/brightcontent/attachment_spec.rb
brightcontent-attachments-2.0.23 spec/models/brightcontent/attachment_spec.rb