test/counters.rb in ohm-1.0.0.rc1 vs test/counters.rb in ohm-1.0.0.rc2
- old
+ new
@@ -41,10 +41,10 @@
test "an attribute gets saved properly" do
Ad.attribute :name
Ad.counter :hits
- ad = Ad.create(name: "foo")
+ ad = Ad.create(:name => "foo")
ad.incr :hits, 10
assert_equal 10, ad.hits
# Now let's just load and save it.
ad = Ad[ad.id]