Files
growstuff/spec/models
Miles Gould 4b1cdc5650 Test Model.newsletter_(un)subscribe
I'm not very happy with this change as-is. The tests are very shallow
(they wouldn't have caught the bug @tconquest and I found in this code,
for instance), and use the deprecated `receive_message_chain` method.
From the RSpec docs:

"Chains can be arbitrarily long, which makes it quite painless to
violate the Law of Demeter in violent ways, so you should consider any
use of receive_message_chain a code smell.  Even though not all code
smells indicate real problems (think fluent interfaces),
receive_message_chain still results in brittle examples. For example, if
you write allow(foo).to receive_message_chain(:bar, :baz => 37) in a
spec and then the implementation calls foo.baz.bar, the stub will not
work."

Further work needed.
2016-12-19 22:15:53 +00:00
..
2016-11-26 12:06:02 +13:00
2016-11-26 12:13:17 +13:00
2016-11-29 13:41:05 -05:00
2016-11-30 00:46:58 -05:00
2016-11-26 12:13:17 +13:00
2016-12-19 16:40:05 +00:00
2016-11-26 12:13:17 +13:00
2016-11-26 12:06:02 +13:00