Skip to content

Commit

Permalink
Simplify some DeclarationOrder specs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Shane da Silva <[email protected]>
  • Loading branch information
sds committed Oct 22, 2014
1 parent c7dfda9 commit 4b83c6c
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions spec/scss_lint/linter/declaration_order_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 4b83c6c

Please sign in to comment.