Sha256: 8eaf1049690352626d9d724a5148f2db1e7f51409174fff1ae3ae0a61232c3f2

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'wagn/spec_helper'

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

7 entries across 7 versions & 1 rubygems

Version Path
wagn-1.12.13 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.12.12 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.12.11 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.12.10 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.12.9 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.12.8 spec/mods/standard/sets/all/attach_spec.rb
wagn-1.12.7 spec/mods/standard/sets/all/attach_spec.rb