How do I assert that a model has a readable/writable attribute?
- by TheDeeno
In one of my model's I'm using some meta programming to dynamically define some methods. I'd like to test this. I need a compact way to assert that my model has readable/writable attribute with a certain name. Ideas?
I'm using shoulda for unit testing if it makes a difference.