Sha256: 617bc93cbfd4dddd8364341b414d9cdd06793e7842643b928ca2830292d3af98
Contents?: true
Size: 757 Bytes
Versions: 13
Compression:
Stored size: 757 Bytes
Contents
require 'test_helper' require 'camping' Camping.goes :Goesmeta class Goesmeta::Test < TestCase def test_meta_data options = Goesmeta.options meta = value = options[:_meta] value = "nil" if meta == nil assert meta != nil, "meta data was not added. #{value}" assert meta[:file].include?("/camping/camping/test/app_goes_meta.rb"), "Wait a minute. This app Goesmeta, has a wonky creation location. #{meta[:file]}" assert meta[:line_number] == 4, "App creation location line number is wrong. It's supposed to be 4." end def test_has_keys_set opt = Goesmeta.options[:_meta] assert opt.has_key?(:file), "app file was not set in Camping.goes. #{opt}" assert opt.has_key?(:parent), "parent app was not set in Camping.goes. #{opt}" end end
Version data entries
13 entries across 13 versions & 1 rubygems