search for: should_satisfy

Displaying 2 results from an estimated 2 matches for "should_satisfy".

2007 Feb 13
3
"should.be_in [values]" and "each_should_satisfy"
Hi! I just started using RSpec and have some question that I couldn''t find answers to. If I have a result that can have two valid values, is there a better way of writing the following assertion? [value1,value2].should_include actual Is there a more elegant way of performing should_satisfy on a collection, for example I currently use something like collection.each {|x| x.should_satisfy {|x| ... } } which is very ugly. Is there something like each_should_satisfy? Thanks, Esad
2007 Jul 26
5
Coding standards and whitespace
...t RSpec.tmbundle/Snippets/should_receive_with_args.tmSnippet RSpec.tmbundle/Snippets/should_receive_with_no_args.tmSnippet RSpec.tmbundle/Snippets/should_redirect_to.tmSnippet RSpec.tmbundle/Snippets/should_render.tmSnippet RSpec.tmbundle/Snippets/should_respond_to.tmSnippet RSpec.tmbundle/Snippets/should_satisfy.tmSnippet RSpec.tmbundle/Snippets/should_throw.tmSnippet RSpec.tmbundle/Snippets/teardown.tmSnippet RSpec.tmbundle/Snippets/twice.tmSnippet rspec_on_rails/generators/rspec/templates/script/spec_server Finally I did a search for trailing whitespace. Which yielded the following list. Many of the l...