flipsasser / maintain

A simple state machine for Ruby objects
MIT License
4 stars 2 forks source link

Bang methods don't create persist-able state #2

Closed danivovich closed 11 years ago

danivovich commented 11 years ago

Should this test pass? I feel like it should. I'm not sure what is different about assignment vs the bang method, but it ends up not persisting to the database

    active_maintain_test = ActiveMaintainTest.new
    active_maintain_test.status = :bar
    active_maintain_test.save
    ActiveMaintainTest.first.status.should == :bar
    active_maintain_test.foo!
    active_maintain_test.save
    ActiveMaintainTest.first.status.should == :foo

Right now it fails on the second assertion

flipsasser commented 11 years ago

Interesting. I'll take a look!

flipsasser commented 11 years ago

Wow, I completely forgot to come back and let you know that this is fixed. There's also a new version of Maintain coming down the pike soon.

flipsasser commented 11 years ago

LULZ I forgot again. Daddy's on it.

flipsasser commented 11 years ago

ONE YEAR LATER THE THINGS ARE FIXED WHATUP THAT'S FREE SOFTWARE FOR YOU

I'm sorry