Sha256: 9f4edf53eac7de0631f610e073ac4cf8bf8628a792788c6062858fa5c14e08e6

Contents?: true

Size: 339 Bytes

Versions: 8

Compression:

Stored size: 339 Bytes

Contents

# -*- encoding : utf-8 -*-

describe Card::Set::All::Attach do
  it 'should be triggered by image card creation' do
    file = File.new( File.join FIXTURES_PATH, 'mao2.jpg' )
    card = Card.create :name => "Bananamaster", :type=>'Image', :attach=>file
    expect(card.attach.url).to match(/^\/files\/Bananamaster-original-\d+/)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.16.1 mod/05_standard/spec/set/all/attach_spec.rb
card-1.16.0 mod/05_standard/spec/set/all/attach_spec.rb
card-1.15.7 mod/05_standard/spec/set/all/attach_spec.rb
card-1.15.6 mod/05_standard/spec/set/all/attach_spec.rb
card-1.15.5 mod/05_standard/spec/set/all/attach_spec.rb
card-1.15.4 mod/05_standard/spec/set/all/attach_spec.rb
card-1.15.3 mod/05_standard/spec/set/all/attach_spec.rb
card-1.15.2 mod/05_standard/spec/set/all/attach_spec.rb