Sha256: f960f65d1e8c7d18a9c08fb2231347d024fc1ae5afdb33cc60cad779ca271236

Contents?: true

Size: 1.26 KB

Versions: 46

Compression:

Stored size: 1.26 KB

Contents

@include describe("Be longer than") {
  @include it("should expect longer lists to be longer") {
    @include should( expect( (1, 2, 3) ), to( be-longer-than( 2)));
    @include should( expect( (1)       ), to( be-longer-than( 0)));
    @include should( expect( ()        ), to( be-longer-than(-1)));
  }

  @include it("should expect shorter lists not to be longer") {
    @include should( expect( (1, 2, 3) ), not-to( be-longer-than(4)));
    @include should( expect( (1)       ), not-to( be-longer-than(2)));
    @include should( expect( ()        ), not-to( be-longer-than(1)));
  }

  @include it("should expect equal length lists not to be longer") {
    @include should( expect( (1, 2, 3) ), not-to( be-longer-than(3)));
    @include should( expect( (1)       ), not-to( be-longer-than(1)));
    @include should( expect( ()        ), not-to( be-longer-than(0)));
  }

  @include it("should expect other values to be longer than 0") {
    @include should( expect( null      ), to( be-longer-than(0)));
    @include should( expect( "string"  ), to( be-longer-than(0)));
  }

  @include it("should expect other values to be shorter than 1") {
    @include should( expect( null      ), not-to( be-longer-than(1)));
    @include should( expect( "string"  ), not-to( be-longer-than(1)));
  }
}

Version data entries

46 entries across 46 versions & 2 rubygems

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