From 4b83c6c248e27f9896efc57621b23855c883510d Mon Sep 17 00:00:00 2001 From: Shane da Silva Date: Tue, 21 Oct 2014 19:22:28 -0700 Subject: [PATCH] Simplify some DeclarationOrder specs These specs seemed more complicated than necessary given what they were testing. Simplify them. Change-Id: Iaa05ba339be9ee508bf0d39f121d75a77c017f9a Reviewed-on: http://gerrit.causes.com/43811 Tested-by: jenkins Reviewed-by: Shane da Silva --- .../linter/declaration_order_spec.rb | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/spec/scss_lint/linter/declaration_order_spec.rb b/spec/scss_lint/linter/declaration_order_spec.rb index 4e0c2cf9..cdb4033f 100644 --- a/spec/scss_lint/linter/declaration_order_spec.rb +++ b/spec/scss_lint/linter/declaration_order_spec.rb @@ -238,14 +238,11 @@ context 'with its own nested rule set' do context 'before a property' do let(:css) { <<-CSS } - .foo { - background: #fff; - @include breakpoint("phone") { - a { - color: #000; - } - color: #ccc; + @include breakpoint("phone") { + a { + color: #000; } + color: #ccc; } CSS @@ -254,13 +251,10 @@ context 'after a property' do let(:css) { <<-CSS } - .foo { - background: #fff; - @include breakpoint("phone") { - color: #ccc; - a { - color: #000; - } + @include breakpoint("phone") { + color: #ccc; + a { + color: #000; } } CSS