Skip to content

Instantly share code, notes, and snippets.

@moro
Created December 18, 2010 05:52
Show Gist options
  • Save moro/746211 to your computer and use it in GitHub Desktop.
Save moro/746211 to your computer and use it in GitHub Desktop.
neocomplepop snippet for rspec uesr.
snippet describe
abbr describe DESC do before do end end
describe '${1:DESC}' do
before do
${2}
end
end
snippet RS::M
abbr RSpec::Matcher.define
RSpec::Matcher.define :${1:NAME} do |expected|
match do |actual|
# expected == actual
${2}
end
end
snippet RS::Ml
abbr RSpec::Matcher.define with full options
RSpec::Matcher.define :${1:NAME} do |expected|
diffable
match do |actual|
# expected == actual
${2}
end
description do
end
failure_message_for_should do |actual|
end
failure_message_for_should_not do |actual|
end
chain :chaining_matcher do |second|
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment