diaspora/spec
Stephen Caudill 81d753e773 Refactor Album spec
* use let(!) where appropriate (see [1] for more info).
* use `context` to portray scenarios
* use `describe` to portray method and Class specifications
* omit the word "should" from example descriptions (Dave Chelimsky
  remarked to me that it was "tantamount to line-noise" and I'm of the
  opinion that it adds no value.
* use more idiomatic Ruby (prefer things like 2.times to 1.upto(2))
* use more idiomatic Rails (prefer 1.minute.from_now to Time.now +
  60*60)
* use more idiomatic Rspec (prefer album.should be_valid to
  album.valid?.should be_true
* also ensure to only make one assertion per example

Other sundry cleanups.

[1] http://rdoc.info/github/rspec/rspec-core/master/RSpec/Core/Let/ClassMethods#let-instance_method
2010-09-17 16:41:58 -04:00
..
controllers fixed small issue in albums#update anad added corressponding controller test 2010-09-16 12:21:08 -03:00
fixtures DG MS fixing webfinger, i hope to goodness 2010-09-15 13:28:06 -07:00
helpers Cleanup stray whitespace 2010-09-16 10:07:59 +08:00
lib Fix websocket specs 2010-09-17 12:49:05 -07:00
models Refactor Album spec 2010-09-17 16:41:58 -04:00
factories.rb Merge branch 'master' of github.com:diaspora/diaspora into production 2010-09-16 16:19:48 -07:00
misc_spec.rb Cleanup stray whitespace 2010-09-16 10:07:59 +08:00
spec_helper.rb Fix websocket specs 2010-09-17 12:49:05 -07:00
user_encryption_spec.rb Cleanup stray whitespace 2010-09-16 10:07:59 +08:00