Sha256: 0d74b7d28d5e720c5cf0a0a2e4308b686a7be81c0da715d1c5790fb8c6194eac

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

require 'spec_helper'

describe 'by weekend' do

  it "should be able to find the posts on the weekend of the 1st of January" do
    Post.by_weekend.count.should eql(6)
  end

  it "should be able to use an alternative field" do
    Event.by_weekend(:field => "start_time").count.should eql(3)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
by_star-2.0.0.beta1 spec/by_star/by_weekend_spec.rb