I am pretty new to using rspec and am trying to write my tests for my controllers. I have this controller (I am using mocha for stubbing):
I would love to be able to test java code with rspec under jruby, but can\'t see how to set expectations on internal java method calls. Given the following java:
I\'m still a working on learning RSpec so I\'m sorry if completely overlooked something... I\'m writing a test for a recipe that has many ingredients.The ingredients are actually added as a percent (
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but 开发者_Python百科this question will likely
I am using some of the Shoulda rspec matchers to the test my model, one of them being: describe Issue do
I\'m not开发者_如何转开发 sure why I am getting these errors, seemingly only on the Shoulda matcher tests.Any advice would be helpful.
Not sure if this is a Rails 3 issue or an RSpec 2 issue, but I can\'t seem to get a standard controller test working - it seems that the \'get\' method can\'t be found.
I am trying to execute rspec code passed in to a Ruby process as a string. How can I execute rspec from within a Ruby process rather than from the commandline and capture the results?
How can I confirm the absence of a HTML attribute in a Rails RSpec test? I can verify that an input tag has a value attribute and that开发者_JS百科 it is an empty string like so:
I\'m working with a bit of a bleeding edge rails app.开发者_开发问答 Rails 3, RSpec 2, Rspec-Rails2.