Displaying 2 results from an estimated 2 matches for "should_not_raise".
2007 Feb 16
6
some fun functionality for all your specs
...iler for converting to rspec)
module Spec
module Expectations
module Should
class Base
def have_valid_associations
@target.save_without_validation
@target.class.reflect_on_all_associations.each do |assoc|
lambda { @target.send(assoc.name, true) }.should_not_raise
end
self
end
end
end
end
end
second, I had a problem where I''d renamed some fields in the model and
didn''t want to manually spec out each method, but also didn''t want to
go the ''null object'' route. assigns[:ca...
2007 Jul 26
5
Coding standards and whitespace
...mSnippet
RSpec.tmbundle/Snippets/should_not_be_redirect.tmSnippet
RSpec.tmbundle/Snippets/should_not_equal.tmSnippet
RSpec.tmbundle/Snippets/should_not_include.tmSnippet
RSpec.tmbundle/Snippets/should_not_match.tmSnippet
RSpec.tmbundle/Snippets/should_not_predicate.tmSnippet
RSpec.tmbundle/Snippets/should_not_raise.tmSnippet
RSpec.tmbundle/Snippets/should_not_receive.tmSnippet
RSpec.tmbundle/Snippets/should_not_respond_to.tmSnippet
RSpec.tmbundle/Snippets/should_not_satisfy.tmSnippet
RSpec.tmbundle/Snippets/should_not_throw.tmSnippet
RSpec.tmbundle/Snippets/should_predicate.tmSnippet
RSpec.tmbundle/Snippets/s...