Sha256: 6fb5d2e7edfec163a0d67fb4d43a087c909b0df49dd0b4697cc1cf51dc82282b

Contents?: true

Size: 250 Bytes

Versions: 28

Compression:

Stored size: 250 Bytes

Contents

describe "Time#friday?" do
  it "returns true if the time represents Friday" do
    Time.new(2000, 1, 7).friday?.should == true
  end

  it "returns false if time doesn't represent Friday" do
    Time.new(2000, 1, 1).friday?.should == false
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
opal-0.4.4 spec/rubyspec/core/time/friday_spec.rb
opal-0.4.3 spec/rubyspec/core/time/friday_spec.rb
opal-0.4.2 spec/rubyspec/core/time/friday_spec.rb
opal-0.4.1 spec/rubyspec/core/time/friday_spec.rb
opal-0.4.0 spec/rubyspec/core/time/friday_spec.rb
opal-0.3.44 spec/rubyspec/core/time/friday_spec.rb
opal-0.3.43 spec/rubyspec/core/time/friday_spec.rb
opal-0.3.42 spec/core/time/friday_spec.rb
opal-0.3.41 spec/core/time/friday_spec.rb
opal-0.3.40 spec/core/time/friday_spec.rb
opal-0.3.39 spec/core/time/friday_spec.rb
opal-0.3.38 spec/core/time/friday_spec.rb
opal-0.3.37 spec/core/time/friday_spec.rb
opal-0.3.36 spec/core/time/friday_spec.rb
opal-0.3.35 spec/core/time/friday_spec.rb
opal-0.3.34 spec/core/time/friday_spec.rb
opal-0.3.33 spec/core/time/friday_spec.rb
opal-0.3.32 spec/core/time/friday_spec.rb
opal-0.3.31 spec/core/time/friday_spec.rb
opal-0.3.30 spec/core/time/friday_spec.rb