Sha256: 357320ce2504fac2e1715644dbe3fc8d4e421879a5253aa47e47ef7aaa990f46
Contents?: true
Size: 265 Bytes
Versions: 2
Compression:
Stored size: 265 Bytes
Contents
module ViewDefinitionHelpers def with_view_definition(name, version, schema) definition = Scenic::Definition.new(name, version) File.open(definition.full_path, "w") { |f| f.write(schema) } yield ensure File.delete definition.full_path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scenic-0.2.1 | spec/support/view_definition_helpers.rb |
scenic-0.2.0 | spec/support/view_definition_helpers.rb |