Sha256: 7d5b6212cde77bc718a95a80353752778228c77273d435afb6aecb18358f8e45

Contents?: true

Size: 345 Bytes

Versions: 13

Compression:

Stored size: 345 Bytes

Contents

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

describe Card::Set::All::Attach do
  it 'should be triggered by image card creation' do
    file = File.new("#{ Wagn.gem_root }/test/fixtures/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

13 entries across 13 versions & 1 rubygems

Version Path
wagn-1.14.9 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.8 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.7 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.6 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.5 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.4 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.3 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.2 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.1 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.0 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.0.pre3 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.0.pre2 mod/05_standard/spec/set/all/attach_spec.rb
wagn-1.14.0.pre1 mod/05_standard/spec/set/all/attach_spec.rb