test/unit/test_mongoid_finder.rb in slugoid-0.0.4 vs test/unit/test_mongoid_finder.rb in slugoid-0.0.5
- old
+ new
@@ -14,10 +14,10 @@
end
context "find" do
should "return the objects when you pass the id" do
assert_equal(@slugoid_project, SlugoidProject.find(@slugoid_project.to_param))
- assert_equal(@project, Project.find(@project.id))
+ assert_equal(@slugoid_project, SlugoidProject.find(@slugoid_project.id))
end
end
context "explicit find by id" do
should "return the object" do