repaired relationship_type test
repaired relationship_type test. Running now
cleaned up relationship_type tests
now actor is constructed correctly in the actors test
added relationships to actor test, the non-working tests should work now, since the @actor is saved successfully
finished actor test. BUT one question arouse: Do we save our actors whenever required? They must be saved when the to_string_pattern changes and they must be saved as well when any information changes. Additional tests could include: What happens when the scope changes, and so on...
Added comment regarding additional tests in actor
repaired scope_spec.rb - scope is saved now, no error message in it{should be_valid} anymore
added validation it{should_be valid} wherever we save our test object
added validation it{should_be valid} wherever we save our test object
on the way to a blacklist_scope_test that tests whether the scoping really works
on the way to a blacklist_scope_test that tests whether the scoping really works
blacklist scope spec now tests whether a user or an admin can see an information for which we set :User to the blecklist. Test works fine, only the admin can see that information
whitelist scope test working fine
adjusted actor_spec.rb using rspec best practices in dest case description
updated black_list_scope_spec; adjusted to rspec best practices
more test adjustments to match rspec best practices
adjusted relationship_spec and relationship_type_spec to match rspec best practices
more test adjustments. Model tests more or less finished (some open tests in actor_spec)
small adjustments at whitelist_scope_spec