Sha256: 02343e10f3678e303cb3cedfcaf4cd8a805435dc7dfd57d55dc3dc2d05f61742

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 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
    card.attach.url.should =~ /^\/files\/Bananamaster-original-\d+/
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wagn-1.13.0 spec/mod/standard/set/all/attach_spec.rb
wagn-1.13.0.pre2 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.13.0.pre1 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.13.0.pre spec/mods/standard/sets/all/attach_spec.rb