Displaying 4 results from an estimated 4 matches for "should_reciev".
Did you mean:
should_recieve
2008 Dec 04
3
The RSpec way of doing this? Need help on validating block
Hello, I''m back again with more questions about mocks and how to do good
testing in general. Let''s say I''m writing this EmailSender class and I
want to make it totally awesomely tested with RSpec. Here''s how far I''ve
gotten so far:
require ''net/smtp''
class EmailSender
def send_email
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
Hello,
Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to test,
if self.create method can take more than two arguments. But, when I try to
run my test. It showed
*PdfHelper Should have two arguments
Failure/Error:
create_pdf.should_receive(object,template).with(user,file)
NameError:
undefined local variable or method `create_pdf'' for
2008 Mar 18
11
"Why not MockEverthing" or why use fixtures for all tests?
Hello fellow RSpec users.
Before you all start warming up your flame throwers please let me
explain my Subject line.
I''ve been working over 4 months on a large Rails project with a few
other developers. Test coverage was spotty at best, though they
*were* RSpec tests. One of the other developers and I had started
adding more tests, mostly controller tests using the methodology
2007 Oct 05
13
spec''ing view render partial collection, local variable not found
I''m trying to spec out a render partial collection but I get the following
error
2)
NoMethodError in ''/games/_game.rhtml should show game name''
undefined method `body'' for #<#<Class:0x316580c>:0x2f1154c>
/Volumes/EXTERNAL/web/omenking.ca/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb:12:in
`matches?''