Sha256: 6ebb079d866ebefc4b47d6157740ab8405b9f76eafc5a73522b999657a45ed17

Contents?: true

Size: 1.62 KB

Versions: 46

Compression:

Stored size: 1.62 KB

Contents

@include describe("Equal") {
  @include it("should expect two equal values to be equal") {
    @include should( expect(  1    ), to( equal(  1    )));
    @include should( expect( -1    ), to( equal( -1    )));
    @include should( expect( a     ), to( equal( a     )));
    @include should( expect( false ), to( equal( false )));
  }

  @include it("should expect two non-equal values not to be equal") {
    @include should( expect(  1    ), not-to( equal( 2    )));
    @include should( expect( -1    ), not-to( equal( 1    )));
    @include should( expect( a     ), not-to( equal( b    )));
    @include should( expect( false ), not-to( equal( true )));
  }

  @include it("should expect two equal lists to be equal") {
    @include should(expect( (1, 2, 3) ),           to( equal( (1, 2, 3) )));
    @include should(expect( ("a", "b", "c") ),     to( equal( ("a", "b", "c") )));
    @include should(expect( (true, false, true) ), to( equal( (true, false, true) )));
  }

  @include it("should expect two unequal lists not to be equal") {
    @include should(expect( (3, 2, 1) ),            not-to( equal( (1, 2, 3) )));
    @include should(expect( ("c", "b", "a") ),      not-to( equal( ("a", "b", "c") )));
    @include should(expect( (false, true, false) ), not-to( equal( (true, false, true) )));
  }

  @include it("should expect two equal lists with different seperators not to be equal") {
    @include should(expect( 1 2 3 ),           not-to( equal( (1, 2, 3) )));
    @include should(expect( "a" "b" "c" ),     not-to( equal( ("a", "b", "c") )));
    @include should(expect( true false true ), not-to( equal( (true, false, true) )));
  }
}

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
flint-gs-2.3.6 tests/bootcamp/test/matchers/_equal.scss
flint-gs-2.3.5 tests/bootcamp/test/matchers/_equal.scss
flint-gs-2.3.4 tests/bootcamp/test/matchers/_equal.scss
flint-gs-2.3.3 tests/bootcamp/test/matchers/_equal.scss
flint-gs-2.3.2 tests/bootcamp/test/matchers/_equal.scss
flint-gs-2.3.1 tests/bootcamp/test/matchers/_equal.scss
flint-gs-2.3.0 tests/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.14 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.13 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
flint-gs-2.2.0 tests/bootcamp/test/matchers/_equal.scss
flint-gs-2.1.4 tests/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.12 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.11 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.10 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.5 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.4 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.3 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.2 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.6.0 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss
oulu-rails-0.5.37 vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss