Skip to content

Commit

Permalink
Add EOL characters to expressions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mgarriott committed Jan 1, 2014
1 parent c8f2c23 commit fcd444e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -70,19 +70,19 @@ Please read [guard doc](http://github.com/guard/guard#readme) for more info abou

```ruby
guard :minitest do
watch(%r{^test/(.*)\/?test_(.*)\.rb})
watch(%r{^lib/(.*/)?([^/]+)\.rb}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
watch(%r{^test/test_helper\.rb}) { 'test' }
watch(%r{^test/(.*)\/?test_(.*)\.rb$})
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
watch(%r{^test/test_helper\.rb$}) { 'test' }
end
```

### Standard Guardfile when using Minitest::Spec

```ruby
guard :minitest do
watch(%r{^spec/(.*)_spec\.rb})
watch(%r{^lib/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^spec/spec_helper\.rb}) { 'spec' }
watch(%r{^spec/(.*)_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
end
```

Expand Down

0 comments on commit fcd444e

Please sign in to comment.