I am able to right-click on any of my 3 spec/models but when I right click the spec/models folder and select \'run all tests in models\' I get \'Unable to attach test reporter to test framework\'.
I upgraded to rails 3.1 and I have some problems with my tests now that worked perfectly before. I get the following warning before the tests:
In Firefox, if I try to submit a post without a title, I get: 1 error prohibited this post from being saved.
I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I am testing my controller code (BTW: I am newbie to rspec) and I would like to make possible that a class object instance returns a predefine
In solving exercise 5, I ran into a similar issue as this question. I refactored based on the answer given to that question but am still receiving the failure:
I am writing integration test for one of my project, usi开发者_Go百科ng the following gems for the same, rspec, capybara and selenium.
Background: I have a set of Capybara integration tests running against my Rails 3 Application. For the other parts of the test suite I\'m using Rspec.
I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I would like to test a JavaScript redirection but I am some trouble on doing that.
I was looking at some rspec sample code and came across this - lambda { @my_object.function }.should raise_error(ArgumentError, \"Unknown tag type\")
I would like to run an开发者_高级运维 rspec before block to set some stuff up before the Rails initializers run, so I can test what an initializer should be doing.Is this possible?If the logic in your