Permalink
Browse files

fix some rspec-ruby indenting

  • Loading branch information...
1 parent 5f0621f commit 78a4cf659de88a22a6eafdc618dfdc753b48042a @scrooloose scrooloose committed Jul 3, 2009
Showing with 18 additions and 18 deletions.
  1. +1 −1 ruby-rspec/desrc.snippet
  2. +1 −1 ruby-rspec/it.snippet
  3. +16 −16 ruby-rspec/mat.snippet
@@ -1,3 +1,3 @@
describe ${1:controller}, "${2:GET|POST|PUT|DELETE} ${3:/some/path}${4}" do
- ${5}
+ ${5}
end
@@ -1,3 +1,3 @@
it '${1}' do
- ${2}
+ ${2}
end
@@ -1,24 +1,24 @@
class ${1:ReverseTo}
- def initialize(${2:param})
- @$2 = $2
- end
+ def initialize(${2:param})
+ @$2 = $2
+ end
- def matches?(actual)
- @actual = actual
- # Satisfy expectation here. Return false or raise an error if it's not met.
- ${3:@actual.reverse.should == @$2}
- true
- end
+ def matches?(actual)
+ @actual = actual
+ # Satisfy expectation here. Return false or raise an error if it's not met.
+ ${3:@actual.reverse.should == @$2}
+ true
+ end
- def failure_message
- "expected #{@actual.inspect} to ${4} #{@$2.inspect}, but it didn't"
- end
+ def failure_message
+ "expected #{@actual.inspect} to ${4} #{@$2.inspect}, but it didn't"
+ end
- def negative_failure_message
- "expected #{@actual.inspect} not to ${5} #{@$2.inspect}, but it did"
- end
+ def negative_failure_message
+ "expected #{@actual.inspect} not to ${5} #{@$2.inspect}, but it did"
+ end
end
def ${6:reverse_to}(${7:expected})
- ${8}.new($7)
+ ${8}.new($7)
end

0 comments on commit 78a4cf6

Please sign in to comment.