Created
December 18, 2010 05:52
-
-
Save moro/746211 to your computer and use it in GitHub Desktop.
neocomplepop snippet for rspec uesr.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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