ignore css.map files [fix: #165] #168

Merged
merged 1 commit into from Aug 1, 2016

Projects

None yet

3 participants

@e2
Contributor
e2 commented Aug 1, 2016

No description provided.

@e2 e2 ignore css.map files [fix: #165]
37ce562
@houndci-bot houndci-bot commented on the diff Aug 1, 2016
spec/lib/guard/livereload/template_spec.rb
@@ -22,6 +22,12 @@
expect(subject.changed('public/foo.jpg')).to eq(%w(public/foo.jpg))
expect(subject.changed('public/foo.jpeg')).to eq(%w(public/foo.jpeg))
end
+
+ context 'when extention does not match exactly' do
+ it 'does not reload' do
+ expect(subject.changed('public/main.css.map')).to eq([])
@houndci-bot
houndci-bot Aug 1, 2016

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@houndci-bot houndci-bot commented on the diff Aug 1, 2016
spec/lib/guard/livereload/template_spec.rb
@@ -22,6 +22,12 @@
expect(subject.changed('public/foo.jpg')).to eq(%w(public/foo.jpg))
expect(subject.changed('public/foo.jpeg')).to eq(%w(public/foo.jpeg))
end
+
+ context 'when extention does not match exactly' do
+ it 'does not reload' do
@houndci-bot
houndci-bot Aug 1, 2016

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@houndci-bot houndci-bot commented on the diff Aug 1, 2016
spec/lib/guard/livereload/template_spec.rb
@@ -22,6 +22,12 @@
expect(subject.changed('public/foo.jpg')).to eq(%w(public/foo.jpg))
expect(subject.changed('public/foo.jpeg')).to eq(%w(public/foo.jpeg))
end
+
+ context 'when extention does not match exactly' do
@houndci-bot
houndci-bot Aug 1, 2016

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@coveralls
coveralls commented Aug 1, 2016 edited

Coverage Status

Coverage increased (+0.03%) to 95.573% when pulling 37ce562 on fix_extension_regexp into dd931cf on master.

@e2 e2 merged commit 38a3f5d into master Aug 1, 2016

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
hound 3 violations found.
@e2 e2 deleted the fix_extension_regexp branch Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment