Sha256: eaa330d5da7610de724763f4b2414e7ef0157163b584a2a9f48d1c6b27c00b32

Contents?: true

Size: 517 Bytes

Versions: 74

Compression:

Stored size: 517 Bytes

Contents

Given /^there is a snippet with tab trigger "([^\"]*)" and scope "([^\"]*)" and content$/ do |tab, scope, string|
  content = unescape_text(string[2..-1])
  snippet = Redcar::Snippets::Snippet.new(nil, content, :tab => tab, :scope => scope)
  Redcar::Snippets.registry.snippets << snippet
  remove_snippet_after(snippet)
end

def remove_snippet_after(snippet)
  (@snippets_to_remove ||= []) << snippet
end

After do
  (@snippets_to_remove||[]).each do |snippet|
    Redcar::Snippets.registry.remove(snippet)
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
redcar-0.13 plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.13.5dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.13.4dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.13.3dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.13.2dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.13.1dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-0.12.1 plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.13.0dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-0.12 plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.27dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.26dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.25dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.24dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.23dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.22dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.21dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.20dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.19dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.18dev plugins/snippets/features/step_definitions/snippet_steps.rb
redcar-dev-0.12.17dev plugins/snippets/features/step_definitions/snippet_steps.rb