Sha256: f366ab534bd5f8e053f8880ea8f6c54e55001e8e89355da52b24bc6733675827
Contents?: true
Size: 585 Bytes
Versions: 20
Compression:
Stored size: 585 Bytes
Contents
require 'zendesk_apps_support' describe ZendeskAppsSupport::AppFile do before do package = mock('Package', :root => Pathname("spec/app/templates/")) @file = ZendeskAppsSupport::AppFile.new(package, 'layout.hdbs') end describe '=~' do it 'should test against the relative path of the file' do @file.should =~ /layout/ end end describe 'read' do it 'should read file content' do @file.read.should =~ /<header>/ end end describe 'to_s' do it 'should return file name' do @file.to_s.should == 'layout.hdbs' end end end
Version data entries
20 entries across 20 versions & 1 rubygems