Sha256: 0080d89d0b42bd62892b0b06912b325213704b262b7d128073dfe40920fb6d09

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

require 'spec_helper'

describe Flms::ImageLayer do
  include NamedFactories

  describe 'view_object' do
    it 'provides a view object' do
      expect(Flms::ImageLayer.new.view_object.is_a?(Flms::ImageLayerViewObject)).to be_true
    end
  end

  describe 'image attachments' do
    let(:layer) { image_layer_1a1 }

    it 'has an attachment' do
      expect(layer.image.path).to match 'placeholder.png'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.9.0 spec/models/image_layer_spec.rb
flms-0.1.0 spec/models/image_layer_spec.rb