dchelimsky/rspec-rails — Issue #16: Lambda should change boolean values
Author: fillman
Created: 2012-02-01 14:20:10+00:00
State: open

It seems like this wont work:
(debugging shows that lambda { simply_another_user.__send__ :active } calls 2 times in @before and @after but returns true anyway even after calling a block). Any ideas?

```ruby
if "should toggle a user" do
simply_another_user = Factory(:user)
simply_another_user.active.should be_true

# Toggle from true to false
debugger
lambda {
post :toggle, :id => simply_another_user
}.should change(simply_another_user, :active)
end
```