Sha256: 2b5ed4ddd554e48b3e3e787743fa6f34d7f7be6f903d5766b029859f4f9b612c

Contents?: true

Size: 518 Bytes

Versions: 8

Compression:

Stored size: 518 Bytes

Contents

##############################################################################
# File::    asserts.rb
# Purpose:: spec assertion helper methods
#
# Author::    Jeff McAffee 07/05/2014
# Copyright:: Copyright (c) 2014, kTech Systems LLC. All rights reserved.
# Website::   http://ktechsystems.com
##############################################################################

def assert_file_contains filename, str
  result = `grep "#{str}" #{filename}`
  fail "'#{str}' not found in #{filename}" if result.empty?
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
admin_module-0.1.8 spec/support/asserts.rb
ams_layout-0.0.4 spec/support/asserts.rb
admin_module-0.1.7 spec/support/asserts.rb
admin_module-0.1.6 spec/support/asserts.rb
ams_layout-0.0.3 spec/support/asserts.rb
ams_layout-0.0.2 spec/support/asserts.rb
admin_module-0.1.5 spec/support/asserts.rb
admin_module-0.1.4 spec/support/asserts.rb