Sha256: 99482363fdbdc0ffffea2b7d770b2e1b85b69e13f1108b2ce7e9f7f20740b6c6
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
require 'spec_helper' shared_examples_for "by weekend" do 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
by_star-2.1.0.beta2 | spec/by_star/shared/by_weekend.rb |