Skip to content

Commit

Permalink
Add a test for keyword argument scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Feb 20, 2015
1 parent 4a97cea commit c336507
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/sass/scss/scss_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3925,6 +3925,22 @@ def test_mixin_with_keyword_args
SCSS
end

def test_keyword_arg_scope
assert_equal <<CSS, render(<<SCSS)
.mixed {
arg1: default;
arg2: non-default; }
CSS
$arg1: default;
$arg2: default;
@mixin a-mixin($arg1: $arg1, $arg2: $arg2) {
arg1: $arg1;
arg2: $arg2;
}
.mixed { @include a-mixin($arg2: non-default); }
SCSS
end

def test_passing_required_args_as_a_keyword_arg
assert_equal <<CSS, render(<<SCSS)
.mixed {
Expand Down

0 comments on commit c336507

Please sign in to comment.