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