Skip to content

Commit

Permalink
Merge pull request mbleigh#727 from lukeasrodgers/fix-flakey-time-test
Browse files Browse the repository at this point in the history
Bugfix flakey time test
  • Loading branch information
seuros committed Feb 7, 2016
2 parents 38b6e7c + bac23e3 commit b00a615
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/acts_as_taggable_on/taggable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@
it "should be able to find a tag using dates" do
@taggable.skill_list = "ruby"
@taggable.save
today = Date.today.to_time.utc
tomorrow = Date.tomorrow.to_time.utc

expect(TaggableModel.tagged_with("ruby", :start_at => Date.today, :end_at => Date.tomorrow).count).to eq(1)
expect(TaggableModel.tagged_with("ruby", :start_at => today, :end_at => tomorrow).count).to eq(1)
end

it "shouldn't be able to find a tag outside date range" do
Expand Down

0 comments on commit b00a615

Please sign in to comment.