Sha256: a6df2d1c1bf1dfd30f624e9465519469e77ca60b8541a471fd8ee8296d6f2b17
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' describe 'PSD' do let(:filename) { 'spec/files/example.psd' } it 'should open a file without a block' do psd = PSD.open(filename) psd.parsed?.should == true psd.should be_instance_of PSD end it 'should refuse to open a bad filename' do expect { PSD.open('') }.to raise_error end it 'should open a file and feed it to a block' do PSD.open(filename) do |psd| psd.parsed?.should == true psd.should be_instance_of PSD end end it 'should open a file and feed it to a block DSL style' do PSD.open(filename) do parsed?.should == true is_a?(PSD).should == true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
psd-0.4.2 | spec/psd_spec.rb |
psd-0.4.1 | spec/psd_spec.rb |
psd-0.4.0 | spec/psd_spec.rb |